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

Method makeOutput

tfjs-backend-webgl/src/backend_webgl.ts:801–805  ·  view source on GitHub ↗
(
      shape: number[], dtype: DataType, values?: BackendValues)

Source from the content-addressed store, hash-verified

799 }
800
801 private makeOutput<T extends Tensor>(
802 shape: number[], dtype: DataType, values?: BackendValues): T {
803 return engine().makeTensorFromTensorInfo(
804 this.makeTensorInfo(shape, dtype, values), this) as T;
805 }
806
807 unpackTensor(input: TensorInfo): TensorInfo {
808 const program = new UnpackProgram(input.shape);

Callers 1

absMethod · 0.95

Calls 3

makeTensorInfoMethod · 0.95
engineFunction · 0.90

Tested by

no test coverage detected