Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

onnxruntime-common

Package Overview
Dependencies
Maintainers
3
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onnxruntime-common - npm Package Compare versions

Comparing version 1.20.0-dev.20240827-5d54dc1462 to 1.20.0-dev.20240912-ae39c40e5b

2

__commit.txt

@@ -1,1 +0,1 @@

5d54dc1462f0c6cc94cecbe86a45962771ac5b86
ae39c40e5b65874735cd07aca692287aa1cf1b62

@@ -18,7 +18,7 @@ import { TensorToDataUrlOptions, TensorToImageDataOptions } from './tensor-conversion.js';

*/
constructor(type: TensorType, data: TensorDataType | readonly string[] | readonly number[] | readonly boolean[], dims?: readonly number[]);
constructor(type: TensorType, data: TensorDataType | Uint8ClampedArray | readonly string[] | readonly number[] | readonly boolean[], dims?: readonly number[]);
/**
* Construct a new CPU tensor object from the given data and dims. Type is inferred from data.
*/
constructor(data: TensorDataType | readonly string[] | readonly boolean[], dims?: readonly number[]);
constructor(data: TensorDataType | Uint8ClampedArray | readonly string[] | readonly boolean[], dims?: readonly number[]);
/**

@@ -25,0 +25,0 @@ * Construct a new tensor object from the pinned CPU data with the given type and dims.

@@ -136,2 +136,10 @@ "use strict";

}
else if (arg1 instanceof Uint8ClampedArray) {
if (arg0 === 'uint8') {
data = Uint8Array.from(arg1);
}
else {
throw new TypeError(`A Uint8ClampedArray tensor's data must be type of uint8`);
}
}
else {

@@ -168,2 +176,6 @@ throw new TypeError(`A ${type} tensor's data must be type of ${typedArrayConstructor}`);

}
else if (arg0 instanceof Uint8ClampedArray) {
type = 'uint8';
data = Uint8Array.from(arg0);
}
else {

@@ -170,0 +182,0 @@ // get tensor type from TypedArray

@@ -163,2 +163,10 @@ import { TensorFactory } from './tensor-factory.js';

/**
* Construct a new uint8 tensor object from a Uint8ClampedArray, data and dims.
*
* @param type - Specify the element type.
* @param data - Specify the CPU tensor data.
* @param dims - Specify the dimension of the tensor. If omitted, a 1-D tensor is assumed.
*/
new (type: 'uint8', data: Uint8ClampedArray, dims?: readonly number[]): TypedTensor<'uint8'>;
/**
* Construct a new 64-bit integer typed tensor object from the given type, data and dims.

@@ -201,2 +209,9 @@ *

/**
* Construct a new uint8 tensor object from the given data and dims.
*
* @param data - Specify the CPU tensor data.
* @param dims - Specify the dimension of the tensor. If omitted, a 1-D tensor is assumed.
*/
new (data: Uint8ClampedArray, dims?: readonly number[]): TypedTensor<'uint8'>;
/**
* Construct a new uint16 tensor object from the given data and dims.

@@ -203,0 +218,0 @@ *

@@ -1,2 +0,2 @@

export declare const version = "1.20.0-dev.20240827-5d54dc1462";
export declare const version = "1.20.0-dev.20240912-ae39c40e5b";
//# sourceMappingURL=version.d.ts.map

@@ -8,3 +8,3 @@ "use strict";

// Do not modify file content manually.
exports.version = '1.20.0-dev.20240827-5d54dc1462';
exports.version = '1.20.0-dev.20240912-ae39c40e5b';
//# sourceMappingURL=version.js.map

@@ -18,7 +18,7 @@ import { TensorToDataUrlOptions, TensorToImageDataOptions } from './tensor-conversion.js';

*/
constructor(type: TensorType, data: TensorDataType | readonly string[] | readonly number[] | readonly boolean[], dims?: readonly number[]);
constructor(type: TensorType, data: TensorDataType | Uint8ClampedArray | readonly string[] | readonly number[] | readonly boolean[], dims?: readonly number[]);
/**
* Construct a new CPU tensor object from the given data and dims. Type is inferred from data.
*/
constructor(data: TensorDataType | readonly string[] | readonly boolean[], dims?: readonly number[]);
constructor(data: TensorDataType | Uint8ClampedArray | readonly string[] | readonly boolean[], dims?: readonly number[]);
/**

@@ -25,0 +25,0 @@ * Construct a new tensor object from the pinned CPU data with the given type and dims.

@@ -133,2 +133,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

}
else if (arg1 instanceof Uint8ClampedArray) {
if (arg0 === 'uint8') {
data = Uint8Array.from(arg1);
}
else {
throw new TypeError(`A Uint8ClampedArray tensor's data must be type of uint8`);
}
}
else {

@@ -165,2 +173,6 @@ throw new TypeError(`A ${type} tensor's data must be type of ${typedArrayConstructor}`);

}
else if (arg0 instanceof Uint8ClampedArray) {
type = 'uint8';
data = Uint8Array.from(arg0);
}
else {

@@ -167,0 +179,0 @@ // get tensor type from TypedArray

@@ -163,2 +163,10 @@ import { TensorFactory } from './tensor-factory.js';

/**
* Construct a new uint8 tensor object from a Uint8ClampedArray, data and dims.
*
* @param type - Specify the element type.
* @param data - Specify the CPU tensor data.
* @param dims - Specify the dimension of the tensor. If omitted, a 1-D tensor is assumed.
*/
new (type: 'uint8', data: Uint8ClampedArray, dims?: readonly number[]): TypedTensor<'uint8'>;
/**
* Construct a new 64-bit integer typed tensor object from the given type, data and dims.

@@ -201,2 +209,9 @@ *

/**
* Construct a new uint8 tensor object from the given data and dims.
*
* @param data - Specify the CPU tensor data.
* @param dims - Specify the dimension of the tensor. If omitted, a 1-D tensor is assumed.
*/
new (data: Uint8ClampedArray, dims?: readonly number[]): TypedTensor<'uint8'>;
/**
* Construct a new uint16 tensor object from the given data and dims.

@@ -203,0 +218,0 @@ *

@@ -1,2 +0,2 @@

export declare const version = "1.20.0-dev.20240827-5d54dc1462";
export declare const version = "1.20.0-dev.20240912-ae39c40e5b";
//# sourceMappingURL=version.d.ts.map

@@ -5,3 +5,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

// Do not modify file content manually.
export const version = '1.20.0-dev.20240827-5d54dc1462';
export const version = '1.20.0-dev.20240912-ae39c40e5b';
//# sourceMappingURL=version.js.map

@@ -54,3 +54,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

type: TensorType,
data: TensorDataType | readonly string[] | readonly number[] | readonly boolean[],
data: TensorDataType | Uint8ClampedArray | readonly string[] | readonly number[] | readonly boolean[],
dims?: readonly number[],

@@ -61,3 +61,6 @@ );

*/
constructor(data: TensorDataType | readonly string[] | readonly boolean[], dims?: readonly number[]);
constructor(
data: TensorDataType | Uint8ClampedArray | readonly string[] | readonly boolean[],
dims?: readonly number[],
);
/**

@@ -95,2 +98,3 @@ * Construct a new tensor object from the pinned CPU data with the given type and dims.

| TensorDataType
| Uint8ClampedArray
| readonly string[]

@@ -101,3 +105,3 @@ | readonly boolean[]

| GpuBufferConstructorParameters,
arg1?: TensorDataType | readonly number[] | readonly string[] | readonly boolean[],
arg1?: TensorDataType | Uint8ClampedArray | readonly number[] | readonly string[] | readonly boolean[],
arg2?: readonly number[],

@@ -223,2 +227,8 @@ ) {

data = arg1;
} else if (arg1 instanceof Uint8ClampedArray) {
if (arg0 === 'uint8') {
data = Uint8Array.from(arg1);
} else {
throw new TypeError(`A Uint8ClampedArray tensor's data must be type of uint8`);
}
} else {

@@ -251,2 +261,5 @@ throw new TypeError(`A ${type} tensor's data must be type of ${typedArrayConstructor}`);

}
} else if (arg0 instanceof Uint8ClampedArray) {
type = 'uint8';
data = Uint8Array.from(arg0);
} else {

@@ -253,0 +266,0 @@ // get tensor type from TypedArray

@@ -196,2 +196,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

/**
* Construct a new uint8 tensor object from a Uint8ClampedArray, data and dims.
*
* @param type - Specify the element type.
* @param data - Specify the CPU tensor data.
* @param dims - Specify the dimension of the tensor. If omitted, a 1-D tensor is assumed.
*/
new (type: 'uint8', data: Uint8ClampedArray, dims?: readonly number[]): TypedTensor<'uint8'>;
/**
* Construct a new 64-bit integer typed tensor object from the given type, data and dims.

@@ -250,2 +259,10 @@ *

/**
* Construct a new uint8 tensor object from the given data and dims.
*
* @param data - Specify the CPU tensor data.
* @param dims - Specify the dimension of the tensor. If omitted, a 1-D tensor is assumed.
*/
new (data: Uint8ClampedArray, dims?: readonly number[]): TypedTensor<'uint8'>;
/**
* Construct a new uint16 tensor object from the given data and dims.

@@ -252,0 +269,0 @@ *

@@ -7,2 +7,2 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

export const version = '1.20.0-dev.20240827-5d54dc1462';
export const version = '1.20.0-dev.20240912-ae39c40e5b';

@@ -5,3 +5,3 @@ {

"name": "onnxruntime-common",
"version": "1.20.0-dev.20240827-5d54dc1462",
"version": "1.20.0-dev.20240912-ae39c40e5b",
"repository": {

@@ -8,0 +8,0 @@ "url": "https://github.com/Microsoft/onnxruntime.git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc