#[unsafe(no_mangle)]pub unsafe extern "C" fn tfe_tensor_f64_clone(
tensor: *const TfeTensorF64,
status: *mut tfe_status_t,
) -> *mut TfeTensorF64Expand description
Deep-copy a tensor.
Tensor::clone() is a shallow copy (Arc refcount increment).
This C API function produces a new tensor with its own independent data buffer.
§Safety
tensormust be a valid pointer returned by atfe_tensor_f64_*creation function that has not yet been released.statusmust be a valid, non-null pointer.
§Examples (C)
tfe_tensor_f64 *copy = tfe_tensor_f64_clone(original, &status);
tfe_tensor_f64_release(copy);