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

Method constructor

tfjs-backend-webgl/src/diag_gpu.ts:25–34  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

23 userCode: string;
24
25 constructor(size: number) {
26 this.outputShape = [size, size];
27 this.userCode = `
28 void main() {
29 ivec2 coords = getOutputCoords();
30 float val = coords[0] == coords[1] ? getX(coords[0]) : 0.0;
31 setOutput(val);
32 }
33 `;
34 }
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected