license import { ENGINE } from '../engine' ; import { Identity , IdentityInputs } from '../kernel_names' ; import { Tensor } from '../tensor' ; import { NamedTensorMap } from '../tensor_types' ; import { convertToTensor } from '../tensor_util_env' ; import { TensorLike } from '../types' ; import { op } from './operation' ; param x doc function clone_ < T extends Tensor > ( x ) { const $x = convertToTensor ( x , 'x' , 'clone' , 'string_or_numeric' ) ; const inputs = { x : $x } ; return ENGINE . runKernel ( Identity , inputs as { } as NamedTensorMap ) ; } export const clone = op ( { clone_ } ) ;