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

Method constructor

tfjs-backend-webgpu/src/draw_webgpu.ts:36–45  ·  view source on GitHub ↗
(
      outShape: number[], type: DataType, textureFormat: GPUTextureFormat)

Source from the content-addressed store, hash-verified

34 size = true;
35
36 constructor(
37 outShape: number[], type: DataType, textureFormat: GPUTextureFormat) {
38 this.outputShape = outShape;
39 this.dispatchLayout = flatDispatchLayout(this.outputShape);
40 this.dispatch = computeDispatch(
41 this.dispatchLayout, this.outputShape, this.workgroupSize);
42 this.type = type;
43 this.textureFormat = textureFormat;
44 this.shaderKey = `draw_${type}_${textureFormat}`;
45 }
46
47 getUserCode(): string {
48 let calculateResult;

Callers

nothing calls this directly

Calls 2

flatDispatchLayoutFunction · 0.90
computeDispatchFunction · 0.90

Tested by

no test coverage detected