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

Method constructor

tfjs-backend-webgpu/src/select_webgpu.ts:32–41  ·  view source on GitHub ↗
(cRank: number, shape: number[], rank: number)

Source from the content-addressed store, hash-verified

30 size = true;
31
32 constructor(cRank: number, shape: number[], rank: number) {
33 this.outputShape = shape;
34 this.dispatchLayout = flatDispatchLayout(this.outputShape);
35 this.dispatch = computeDispatch(
36 this.dispatchLayout, this.outputShape, this.workgroupSize);
37
38 this.cRank = cRank;
39 this.rank = rank;
40 this.shaderKey = 'select';
41 }
42
43 getUserCode(): string {
44 // TODO(WGSL): below code can be merged with getUserCode.

Callers

nothing calls this directly

Calls 2

flatDispatchLayoutFunction · 0.90
computeDispatchFunction · 0.90

Tested by

no test coverage detected