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

Function getCoordsXYZ

tfjs-backend-webgpu/src/webgpu_program.ts:131–147  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

129}
130
131export function getCoordsXYZ(index: number): string {
132 if (index === 0) {
133 return 'x';
134 } else if (index === 1) {
135 return 'y';
136 } else if (index === 2) {
137 return 'z';
138 } else if (index === 3) {
139 return 'w';
140 } else if (index === 4) {
141 return 'u';
142 } else if (index === 5) {
143 return 'v';
144 } else {
145 throw Error(`Index ${index} is not yet supported`);
146 }
147}
148
149export function getMainHeaderString(): string;
150export function getMainHeaderString(index: string): string;

Callers 6

getInputShapeLastDimMethod · 0.90
splitOutputCoordsMethod · 0.90
getSwitchedCoordsFunction · 0.90
getUserCodeMethod · 0.90
getInputByOutputSnippetFunction · 0.85

Calls 1

ErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…