license import { KernelConfig , ZerosLike , ZerosLikeInputs } from '@tensorflow/tfjs' ; import { NodeJSKernelBackend } from '../nodejs_kernel_backend' ; export const zerosLikeConfig = { kernelName : ZerosLike , backendName : 'tensorflow' , kernelFunc : ( args ) => { const { x } = args . inputs as ZerosLikeInputs ; const backend = args . backend as NodeJSKernelBackend ; const opAttrs = [ { name : 'T' , type : backend . binding . TF_ATTR_TYPE , value : backend . getDTypeInteger ( x . dtype ) } ] ; return backend . executeSingleOutput ( ZerosLike , opAttrs , [ x ] ) ; } } ;