(aShape: number[], outputShape: number[])
| 29 | size = true; |
| 30 | |
| 31 | constructor(aShape: number[], outputShape: number[]) { |
| 32 | this.outputShape = aShape.slice(); |
| 33 | this.aShape = aShape; |
| 34 | this.outputShape = outputShape; |
| 35 | this.dispatchLayout = flatDispatchLayout(this.outputShape); |
| 36 | this.dispatch = computeDispatch( |
| 37 | this.dispatchLayout, this.outputShape, this.workgroupSize); |
| 38 | this.shaderKey = `gather`; |
| 39 | } |
| 40 | |
| 41 | getUserCode(): string { |
| 42 | const sourceCoords = getSourceCoords(this.aShape); |
nothing calls this directly
no test coverage detected