onnxruntime-node 1.16.0-dev.20230606-f013965831 → 1.16.0-dev.20230704-d540c7da0f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__commit.txt +1 -1
- package/bin/napi-v3/darwin/arm64/libonnxruntime.1.16.0.dylib +0 -0
- package/bin/napi-v3/darwin/arm64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/darwin/x64/libonnxruntime.1.16.0.dylib +0 -0
- package/bin/napi-v3/darwin/x64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/linux/arm64/libonnxruntime.so.1.16.0 +0 -0
- package/bin/napi-v3/linux/arm64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/linux/x64/libonnxruntime.so.1.16.0 +0 -0
- package/bin/napi-v3/win32/arm64/onnxruntime.dll +0 -0
- package/bin/napi-v3/win32/arm64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/win32/arm64/onnxruntime_providers_shared.dll +0 -0
- package/bin/napi-v3/win32/x64/onnxruntime.dll +0 -0
- package/bin/napi-v3/win32/x64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/win32/x64/onnxruntime_providers_shared.dll +0 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/version.js +9 -0
- package/dist/version.js.map +1 -0
- package/lib/index.ts +4 -1
- package/lib/version.ts +7 -0
- package/package.json +2 -2
- package/dist/backend.d.ts +0 -7
- package/dist/binding.d.ts +0 -31
- package/dist/index.d.ts +0 -1
package/__commit.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d540c7da0f47324e3548dff0dcc1329689227e01
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -19,5 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("onnxruntime-common"), exports);
|
|
20
20
|
const onnxruntime_common_1 = require("onnxruntime-common");
|
|
21
21
|
const backend_1 = require("./backend");
|
|
22
|
+
const version_1 = require("./version");
|
|
22
23
|
(0, onnxruntime_common_1.registerBackend)('cpu', backend_1.onnxruntimeBackend, 100);
|
|
24
|
+
onnxruntime_common_1.env.versions.node = version_1.version;
|
|
23
25
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;;;;;;;;;;;;;;AAElC,qDAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;;;;;;;;;;;;;;AAElC,qDAAmC;AACnC,2DAAwD;AACxD,uCAA6C;AAC7C,uCAAkC;AAElC,IAAA,oCAAe,EAAC,KAAK,EAAE,4BAAkB,EAAE,GAAG,CAAC,CAAC;AAEhD,wBAAG,CAAC,QAAQ,CAAC,IAAI,GAAG,iBAAO,CAAC"}
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.version = void 0;
|
|
6
|
+
// This file is generated by /js/scripts/update-version.ts
|
|
7
|
+
// Do not modify file content manually.
|
|
8
|
+
exports.version = '1.16.0-dev.20230704-d540c7da0f';
|
|
9
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../lib/version.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;AAElC,0DAA0D;AAC1D,uCAAuC;AAE1B,QAAA,OAAO,GAAG,gCAAgC,CAAC"}
|
package/lib/index.ts
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
4
|
export * from 'onnxruntime-common';
|
|
5
|
-
import {registerBackend} from 'onnxruntime-common';
|
|
5
|
+
import {registerBackend, env} from 'onnxruntime-common';
|
|
6
6
|
import {onnxruntimeBackend} from './backend';
|
|
7
|
+
import {version} from './version';
|
|
7
8
|
|
|
8
9
|
registerBackend('cpu', onnxruntimeBackend, 100);
|
|
10
|
+
|
|
11
|
+
env.versions.node = version;
|
package/lib/version.ts
ADDED
package/package.json
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
3
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"version": "1.16.0-dev.
|
|
16
|
+
"version": "1.16.0-dev.20230704-d540c7da0f",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"onnxruntime-common": "~1.16.0-dev.
|
|
18
|
+
"onnxruntime-common": "~1.16.0-dev.20230704-d540c7da0f"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"buildr": "tsc && node ./script/build --config=RelWithDebInfo",
|
package/dist/backend.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Backend, InferenceSession, SessionHandler } from 'onnxruntime-common';
|
|
2
|
-
declare class OnnxruntimeBackend implements Backend {
|
|
3
|
-
init(): Promise<void>;
|
|
4
|
-
createSessionHandler(pathOrBuffer: string | Uint8Array, options?: InferenceSession.SessionOptions): Promise<SessionHandler>;
|
|
5
|
-
}
|
|
6
|
-
export declare const onnxruntimeBackend: OnnxruntimeBackend;
|
|
7
|
-
export {};
|
package/dist/binding.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { InferenceSession, OnnxValue } from 'onnxruntime-common';
|
|
2
|
-
type SessionOptions = InferenceSession.SessionOptions;
|
|
3
|
-
type FeedsType = {
|
|
4
|
-
[name: string]: OnnxValue;
|
|
5
|
-
};
|
|
6
|
-
type FetchesType = {
|
|
7
|
-
[name: string]: OnnxValue | null;
|
|
8
|
-
};
|
|
9
|
-
type ReturnType = {
|
|
10
|
-
[name: string]: OnnxValue;
|
|
11
|
-
};
|
|
12
|
-
type RunOptions = InferenceSession.RunOptions;
|
|
13
|
-
/**
|
|
14
|
-
* Binding exports a simple synchronized inference session object wrap.
|
|
15
|
-
*/
|
|
16
|
-
export declare namespace Binding {
|
|
17
|
-
interface InferenceSession {
|
|
18
|
-
loadModel(modelPath: string, options: SessionOptions): void;
|
|
19
|
-
loadModel(buffer: ArrayBuffer, byteOffset: number, byteLength: number, options: SessionOptions): void;
|
|
20
|
-
readonly inputNames: string[];
|
|
21
|
-
readonly outputNames: string[];
|
|
22
|
-
run(feeds: FeedsType, fetches: FetchesType, options: RunOptions): ReturnType;
|
|
23
|
-
}
|
|
24
|
-
interface InferenceSessionConstructor {
|
|
25
|
-
new (): InferenceSession;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export declare const binding: {
|
|
29
|
-
InferenceSession: Binding.InferenceSessionConstructor;
|
|
30
|
-
};
|
|
31
|
-
export {};
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'onnxruntime-common';
|