(numIndices: number, depth: number)
| 29 | size = true; |
| 30 | |
| 31 | constructor(numIndices: number, depth: number) { |
| 32 | this.outputShape = [numIndices, depth]; |
| 33 | this.dispatchLayout = flatDispatchLayout(this.outputShape); |
| 34 | this.dispatch = computeDispatch( |
| 35 | this.dispatchLayout, this.outputShape, this.workgroupSize); |
| 36 | this.shaderKey = 'onehot'; |
| 37 | } |
| 38 | |
| 39 | getUserCode(): string { |
| 40 | const userCode = ` |
nothing calls this directly
no test coverage detected