MCPcopy Create free account
hub / github.com/tensorflow/tfjs / constructor

Method constructor

tfjs-node/src/nodejs_kernel_backend.ts:42–48  ·  view source on GitHub ↗
(binding: TFJSBinding, packageName: string)

Source from the content-addressed store, hash-verified

40 private tensorMap: tf.DataStorage<TensorData>;
41
42 constructor(binding: TFJSBinding, packageName: string) {
43 super();
44 this.binding = binding;
45 this.isGPUPackage = packageName === '@tensorflow/tfjs-node-gpu';
46 this.isUsingGpuDevice = this.binding.isUsingGpuDevice();
47 this.tensorMap = new tf.DataStorage<TensorData>(this, tf.engine());
48 }
49
50 getDTypeInteger(dtype: DataType): number {
51 switch (dtype) {

Callers

nothing calls this directly

Calls 1

isUsingGpuDeviceMethod · 0.80

Tested by

no test coverage detected