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

Method constructor

tfjs-backend-webgl/src/fill_gpu.ts:27–37  ·  view source on GitHub ↗
(shape: number[], value: number)

Source from the content-addressed store, hash-verified

25 customUniforms = [{name: 'value', type: 'float' as UniformType}];
26
27 constructor(shape: number[], value: number) {
28 this.variableNames = ['x'];
29 this.outputShape = shape;
30
31 this.userCode = `
32 void main() {
33 // Input can be obtained from uniform value.
34 setOutput(value);
35 }
36 `;
37 }
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected