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

Method constructor

tfjs-backend-webgpu/src/clip_webgpu.ts:33–40  ·  view source on GitHub ↗
(outputShape: number[])

Source from the content-addressed store, hash-verified

31 size = true;
32
33 constructor(outputShape: number[]) {
34 this.outputShape = outputShape;
35 this.dispatchLayout = flatDispatchLayout(this.outputShape);
36 this.dispatch = computeDispatch(
37 this.dispatchLayout, this.outputShape, this.workgroupSize);
38
39 this.shaderKey = 'clip';
40 }
41
42 getUserCode(): string {
43 const userCode = `

Callers

nothing calls this directly

Calls 2

flatDispatchLayoutFunction · 0.90
computeDispatchFunction · 0.90

Tested by

no test coverage detected