Function tfe_tensor_f64_zeros
Source #[unsafe(no_mangle)]
pub unsafe extern "C" fn tfe_tensor_f64_zeros(
shape: *const usize,
ndim: usize,
status: *mut tfe_status_t,
) -> *mut TfeTensorF64
Expand description
Create a tensor filled with zeros.
§Safety
shape must point to at least ndim valid usize values.
status must be a valid, non-null pointer.
§Examples (C)
size_t shape[] = {3, 4};
tfe_status_t status;
tfe_tensor_f64 *t = tfe_tensor_f64_zeros(shape, 2, &status);
tfe_tensor_f64_release(t);