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

Method getInCoord

tfjs-backend-webgl/src/reverse_gpu.ts:43–48  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

41 return;
42 }
43 const getInCoord = (i: number) => {
44 if (axis.indexOf(i) !== -1 && xShape[i] !== 1) {
45 return `${xShape[i]} - coords[${i}] - 1`;
46 }
47 return `coords[${i}]`;
48 };
49 const inCoords = xShape.map((_, i) => getInCoord(i)).join(',');
50 const type = getCoordsDataType(rank);
51

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected