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

Function isFlatDispatchLayout

tfjs-backend-webgpu/src/webgpu_program.ts:843–853  ·  view source on GitHub ↗
(program: WebGPUProgram)

Source from the content-addressed store, hash-verified

841 return uniformShader;
842}
843function isFlatDispatchLayout(program: WebGPUProgram): boolean {
844 if (program.dispatchLayout.hasOwnProperty('y') &&
845 program.dispatchLayout.y.length !== 0) {
846 return false;
847 }
848 if (program.dispatchLayout.hasOwnProperty('z') &&
849 program.dispatchLayout.z.length !== 0) {
850 return false;
851 }
852 return true;
853}

Callers 1

makeShaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…