chore: update node_modules with new binary files and dependencies
- Add new binary files for nodemon, onnxruntime-web, and xenova/transformers - Update various JavaScript and TypeScript files in node_modules - Remove unused files and dependencies - Add new test fixtures and documentation files
This commit is contained in:
15
node_modules/onnxruntime-web/lib/onnxjs/backends/webgl/ops/reshape.ts
generated
vendored
Normal file
15
node_modules/onnxruntime-web/lib/onnxjs/backends/webgl/ops/reshape.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {Tensor} from '../../../tensor';
|
||||
import {ShapeUtil} from '../../../util';
|
||||
import {WebGLInferenceHandler} from '../inference-handler';
|
||||
|
||||
export const reshape = (handler: WebGLInferenceHandler, inputs: Tensor[]): Tensor[] => {
|
||||
const reshapedDims = ShapeUtil.calculateReshapedDims(inputs[0].dims, inputs[1].integerData);
|
||||
if (handler.session.pack) {
|
||||
return [handler.reshapePacked(inputs[0], reshapedDims)];
|
||||
} else {
|
||||
return [handler.reshapeUnpacked(inputs[0], reshapedDims)];
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user