MCPcopy Index your code
hub / github.com/tensorflow/tfjs / makeTensorFromDataId

Method makeTensorFromDataId

tfjs-core/src/engine.ts:835–841  ·  view source on GitHub ↗

* Internal method used by backends. Makes a new tensor * that is a wrapper around an existing data id. It doesn't create * a new data id, only increments the ref count used in memory tracking. * @deprecated

(
    dataId: DataId, shape: number[], dtype: DataType,
    backend?: KernelBackend)

Source from the content-addressed store, hash-verified

833 * @deprecated
834 */
835 makeTensorFromDataId(
836 dataId: DataId, shape: number[], dtype: DataType,
837 backend?: KernelBackend): Tensor {
838 dtype = dtype || 'float32';
839 const tensorInfo: TensorInfo = {dataId, shape, dtype};
840 return this.makeTensorFromTensorInfo(tensorInfo, backend);
841 }
842
843 /**
844 * Internal method used by backends. Makes a new tensor that is a wrapper

Callers 3

engine_test.tsFile · 0.80

Calls 1

Tested by

no test coverage detected