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

Method getUserCode

tfjs-backend-webgpu/src/diag_webgpu.ts:39–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 getUserCode(): string {
40 const userCode = `
41 ${main('index')} {
42 if (index < uniforms.size) {
43 let coords = getOutputCoords();
44 let value = select(0.0, getX(coords[0]), coords[0] == coords[1]);
45 setOutputAtIndex(index, value);
46 }
47 }
48 `;
49 return userCode;
50 }
51}

Callers

nothing calls this directly

Calls 1

mainFunction · 0.50

Tested by

no test coverage detected