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

Method constructor

tfjs-backend-webgl/src/encode_float_gpu.ts:29–40  ·  view source on GitHub ↗
(outputShape: number[])

Source from the content-addressed store, hash-verified

27 outTexUsage = TextureUsage.DOWNLOAD;
28
29 constructor(outputShape: number[]) {
30 const glsl = getGlslDifferences();
31 this.outputShape = outputShape;
32 this.userCode = `
33 ${ENCODE_FLOAT_SNIPPET}
34
35 void main() {
36 float x = getAAtOutCoords();
37 ${glsl.output} = encode_float(x);
38 }
39 `;
40 }
41}

Callers

nothing calls this directly

Calls 1

getGlslDifferencesFunction · 0.90

Tested by

no test coverage detected