tfe_tensor_f64_zeros

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.

The internal memory layout is implementation-defined.

§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);