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

Method makeOutput

tfjs-backend-cpu/src/backend_cpu.ts:163–167  ·  view source on GitHub ↗
(
      values: backend_util.BackendValues, shape: number[], dtype: DataType)

Source from the content-addressed store, hash-verified

161 }
162
163 makeOutput<T extends Tensor>(
164 values: backend_util.BackendValues, shape: number[], dtype: DataType): T {
165 return engine().makeTensorFromTensorInfo(
166 this.makeTensorInfo(shape, dtype, values), this) as T;
167 }
168
169 /**
170 * Dispose the memory if the dataId has 0 refCount. Return true if the memory

Callers 2

complexAbsFunction · 0.45
absFunction · 0.45

Calls 3

makeTensorInfoMethod · 0.95
engineFunction · 0.90

Tested by

no test coverage detected