2021-04-16 08:33:10 +00:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
|
|
export * from 'onnxruntime-common';
|
2024-08-14 23:51:22 +00:00
|
|
|
export { listSupportedBackends } from './backend';
|
|
|
|
|
import { registerBackend, env } from 'onnxruntime-common';
|
|
|
|
|
import { version } from './version';
|
|
|
|
|
import { onnxruntimeBackend, listSupportedBackends } from './backend';
|
2021-04-16 08:33:10 +00:00
|
|
|
|
2023-08-25 23:57:06 +00:00
|
|
|
const backends = listSupportedBackends();
|
|
|
|
|
for (const backend of backends) {
|
|
|
|
|
registerBackend(backend.name, onnxruntimeBackend, 100);
|
|
|
|
|
}
|
2023-06-09 23:18:53 +00:00
|
|
|
|
2024-08-14 23:51:22 +00:00
|
|
|
Object.defineProperty(env.versions, 'node', { value: version, enumerable: true });
|