license import { TensorInfo , util } from '@tensorflow/tfjs-core' ; export function assertNotComplex ( tensor , opName ) { if ( ! Array . isArray ( tensor ) ) { tensor = [ tensor ] ; } tensor . forEach ( t => { if ( t != null ) { util . assert ( t . dtype !== 'complex64' , ( ) => `${ opName } does not support complex64 tensors in the CPU backend.` ) ; } } ) ; }