(
tensor: TensorInfo|TensorInfo[], opName: string)
| 18 | import {TensorInfo, util} from '@tensorflow/tfjs-core'; |
| 19 | |
| 20 | export function assertNotComplex( |
| 21 | tensor: TensorInfo|TensorInfo[], opName: string): void { |
| 22 | if (!Array.isArray(tensor)) { |
| 23 | tensor = [tensor]; |
| 24 | } |
| 25 | tensor.forEach(t => { |
| 26 | if (t != null) { |
| 27 | util.assert( |
| 28 | t.dtype !== 'complex64', |
| 29 | () => `${ |
| 30 | opName} does not support complex64 tensors in the CPU backend.`); |
| 31 | } |
| 32 | }); |
| 33 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…