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

Method constructor

tfjs-backend-webgpu/src/lrn_webgpu.ts:44–50  ·  view source on GitHub ↗
(xShape: number[])

Source from the content-addressed store, hash-verified

42 size = true;
43
44 constructor(xShape: number[]) {
45 this.outputShape = xShape;
46 this.dispatchLayout = flatDispatchLayout(this.outputShape);
47 this.dispatch = computeDispatch(
48 this.dispatchLayout, this.outputShape, this.workgroupSize);
49 this.shaderKey = 'lrn';
50 }
51
52 getUserCode(): string {
53 const userCode = `

Callers

nothing calls this directly

Calls 2

flatDispatchLayoutFunction · 0.90
computeDispatchFunction · 0.90

Tested by

no test coverage detected