(op: string, aShape: number[], bShape: number[])
| 32 | enableShapeUniforms: boolean; |
| 33 | |
| 34 | constructor(op: string, aShape: number[], bShape: number[]) { |
| 35 | this.outputShape = backend_util.assertAndGetBroadcastShape(aShape, bShape); |
| 36 | this.enableShapeUniforms = useShapeUniforms(this.outputShape.length); |
| 37 | this.userCode = ` |
| 38 | float binaryOperation(float a, float b) { |
| 39 | ${op} |
| 40 | } |
| 41 | |
| 42 | void main() { |
| 43 | float a = getAAtOutCoords(); |
| 44 | float b = getBAtOutCoords(); |
| 45 | setOutput(binaryOperation(a, b)); |
| 46 | } |
| 47 | `; |
| 48 | } |
| 49 | } |
nothing calls this directly
no test coverage detected