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

Function flatDispatchLayout

tfjs-backend-webgpu/src/webgpu_util.ts:142–144  ·  view source on GitHub ↗
(shape: number[])

Source from the content-addressed store, hash-verified

140}
141
142export function flatDispatchLayout(shape: number[]) {
143 return {x: shape.map((d, i) => i)};
144}
145
146export function GPUBytesPerElement(dtype: DataType): number {
147 if (dtype === 'float32' || dtype === 'int32' || dtype === 'bool' ||

Callers 15

constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…