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

Method packTensor

tfjs-backend-webgl/src/backend_webgl.ts:812–818  ·  view source on GitHub ↗
(input: TensorInfo)

Source from the content-addressed store, hash-verified

810 }
811
812 packTensor(input: TensorInfo): TensorInfo {
813 const program = new PackProgram(input.shape);
814 const preventEagerUnpackingOutput = true;
815 return this.runWebGLProgram(
816 program, [input], input.dtype, null /* customUniformValues */,
817 preventEagerUnpackingOutput);
818 }
819
820 private packedReshape(input: TensorInfo, afterShape: number[]): TensorInfo {
821 const input3DShape = [

Callers 1

runWebGLProgramMethod · 0.95

Calls 1

runWebGLProgramMethod · 0.95

Tested by

no test coverage detected