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:
26
node_modules/onnxruntime-common/dist/lib/tensor-impl.d.ts
generated
vendored
Normal file
26
node_modules/onnxruntime-common/dist/lib/tensor-impl.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { Tensor as TensorInterface, TensorFromImageOptions, TensorToImageDataOptions } from './tensor';
|
||||
type TensorType = TensorInterface.Type;
|
||||
type TensorDataType = TensorInterface.DataType;
|
||||
export declare class Tensor implements TensorInterface {
|
||||
constructor(type: TensorType, data: TensorDataType | readonly number[] | readonly boolean[], dims?: readonly number[]);
|
||||
constructor(data: TensorDataType | readonly boolean[], dims?: readonly number[]);
|
||||
/**
|
||||
* Create a new tensor object from image object
|
||||
*
|
||||
* @param buffer - Extracted image buffer data - assuming RGBA format
|
||||
* @param imageFormat - input image configuration - required configurations height, width, format
|
||||
* @param tensorFormat - output tensor configuration - Default is RGB format
|
||||
*/
|
||||
private static bufferToTensor;
|
||||
static fromImage(imageData: ImageData, options?: TensorFromImageOptions): Promise<Tensor>;
|
||||
static fromImage(imageElement: HTMLImageElement, options?: TensorFromImageOptions): Promise<Tensor>;
|
||||
static fromImage(bitmap: ImageBitmap, options: TensorFromImageOptions): Promise<Tensor>;
|
||||
static fromImage(url: string, options?: TensorFromImageOptions): Promise<Tensor>;
|
||||
toImageData(options?: TensorToImageDataOptions): ImageData;
|
||||
readonly dims: readonly number[];
|
||||
readonly type: TensorType;
|
||||
readonly data: TensorDataType;
|
||||
readonly size: number;
|
||||
reshape(dims: readonly number[]): Tensor;
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user