tfe_tensor_f64_clone

Function tfe_tensor_f64_clone 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tfe_tensor_f64_clone( _tensor: *const TfeTensorF64, _status: *mut tfe_status_t, ) -> *mut TfeTensorF64
Expand description

Deep-copy a tensor.

§Safety

  • tensor must be a valid pointer returned by a tfe_tensor_f64_* creation function that has not yet been released.
  • status must be a valid, non-null pointer.

§Examples (C)

tfe_tensor_f64 *copy = tfe_tensor_f64_clone(original, &status);
tfe_tensor_f64_release(copy);