(
tensor: TensorInfo|TensorInfo[], opName: string)
| 160 | } |
| 161 | |
| 162 | export function assertNotComplex( |
| 163 | tensor: TensorInfo|TensorInfo[], opName: string): void { |
| 164 | if (!Array.isArray(tensor)) { |
| 165 | tensor = [tensor]; |
| 166 | } |
| 167 | tensor.forEach(t => { |
| 168 | if (t != null) { |
| 169 | util.assert( |
| 170 | t.dtype !== 'complex64', |
| 171 | () => `${opName} does not support complex64 tensors ` + |
| 172 | 'in the WebGPU backend.'); |
| 173 | } |
| 174 | }); |
| 175 | } |
| 176 | |
| 177 | export enum MatMulProgramType { |
| 178 | MatMulReduceProgram, |
no outgoing calls
no test coverage detected
searching dependent graphs…