license import { TypedArray , util } from '@tensorflow/tfjs-core' ; export function linSpaceImpl ( start , stop , num ) { const step = ( stop - start ) / ( num - 1 ) ; const values = util . makeZerosTypedArray ( num , 'float32' ) ; values [ 0 ] = start ; for ( let i = 1 ; i < values . length ; i ++ ) { values [ i ] = values [ i - 1 ] + step ; } return values ; }