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

Method constructor

tfjs-backend-webgpu/src/diag_webgpu.ts:30–37  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

flatDispatchLayoutFunction · 0.90
computeDispatchFunction · 0.90

Tested by

no test coverage detected