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

Method constructor

tfjs-backend-webgl/src/clip_gpu.ts:30–44  ·  view source on GitHub ↗
(aShape: number[])

Source from the content-addressed store, hash-verified

28 ];
29
30 constructor(aShape: number[]) {
31 this.outputShape = aShape;
32 this.userCode = `
33
34 void main() {
35 float value = getAAtOutCoords();
36 if (isnan(value)) {
37 setOutput(value);
38 return;
39 }
40
41 setOutput(clamp(value, minVal, maxVal));
42 }
43 `;
44 }
45}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected