human/tfjs/tf-version.ts

25 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-08-21 19:34:51 +02:00
/* eslint-disable import/no-extraneous-dependencies */
2021-09-15 04:07:13 +02:00
// get versions of all packages
2022-10-17 16:47:20 +02:00
// import { version as tfjsVersion } from '@tensorflow/tfjs/package.json';
2021-09-15 04:07:13 +02:00
import { version as tfjsCoreVersion } from '@tensorflow/tfjs-core/package.json';
import { version as tfjsConverterVersion } from '@tensorflow/tfjs-converter/package.json';
2022-10-17 16:47:20 +02:00
// import { version as tfjsDataVersion } from '@tensorflow/tfjs-data/package.json';
// import { version as tfjsLayersVersion } from '@tensorflow/tfjs-layers/package.json';
import { version as tfjsBackendCPUVersion } from '@tensorflow/tfjs-backend-cpu/package.json';
2021-09-15 04:07:13 +02:00
import { version as tfjsBackendWebGLVersion } from '@tensorflow/tfjs-backend-webgl/package.json';
import { version as tfjsBackendWASMVersion } from '@tensorflow/tfjs-backend-wasm/package.json';
2022-10-17 16:47:20 +02:00
import { version as tfjsBackendWebGPUVersion } from '@tensorflow/tfjs-backend-webgpu/package.json';
2021-09-15 04:07:13 +02:00
export const version = {
2022-10-17 16:47:20 +02:00
tfjs: tfjsCoreVersion,
2021-09-15 04:07:13 +02:00
'tfjs-core': tfjsCoreVersion,
2022-10-17 16:47:20 +02:00
// 'tfjs-data': tfjsDataVersion,
// 'tfjs-layers': tfjsLayersVersion,
2021-09-15 04:07:13 +02:00
'tfjs-converter': tfjsConverterVersion,
2022-10-17 16:47:20 +02:00
'tfjs-backend-cpu': tfjsBackendCPUVersion,
2021-09-15 04:07:13 +02:00
'tfjs-backend-webgl': tfjsBackendWebGLVersion,
'tfjs-backend-wasm': tfjsBackendWASMVersion,
2022-10-17 16:47:20 +02:00
'tfjs-backend-webgpu': tfjsBackendWebGPUVersion,
2021-09-15 04:07:13 +02:00
};