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

Method constructor

tfjs-backend-webgpu/src/reverse_webgpu.ts:31–38  ·  view source on GitHub ↗
(xShape: [number, number, number, number])

Source from the content-addressed store, hash-verified

29 size = true;
30
31 constructor(xShape: [number, number, number, number]) {
32 this.outputShape = xShape;
33 this.dispatchLayout = flatDispatchLayout(this.outputShape);
34 this.dispatch = computeDispatch(
35 this.dispatchLayout, this.outputShape, this.workgroupSize);
36 this.uniforms = ` axis : vec4<i32>,`;
37 this.shaderKey = 'reverse';
38 }
39
40 getUserCode(): string {
41 const reverseCoordsSnippet = `

Callers

nothing calls this directly

Calls 2

flatDispatchLayoutFunction · 0.90
computeDispatchFunction · 0.90

Tested by

no test coverage detected