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

Method constructor

tfjs-backend-webgpu/src/im2col_webgpu.ts:34–41  ·  view source on GitHub ↗
(outputShape: number[], isChannelsLast: boolean)

Source from the content-addressed store, hash-verified

32 size = true;
33
34 constructor(outputShape: number[], isChannelsLast: boolean) {
35 this.outputShape = outputShape;
36 this.dispatchLayout = flatDispatchLayout(this.outputShape);
37 this.dispatch = computeDispatch(
38 this.dispatchLayout, this.outputShape, this.workgroupSize);
39 this.isChannelsLast = isChannelsLast;
40 this.shaderKey = `im2col_${this.isChannelsLast}`;
41 }
42
43 getUserCode(): string {
44 const rowDim = this.isChannelsLast ? 1 : 2;

Callers

nothing calls this directly

Calls 2

flatDispatchLayoutFunction · 0.90
computeDispatchFunction · 0.90

Tested by

no test coverage detected