tfe_tensor_f64_ndim

Function tfe_tensor_f64_ndim 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tfe_tensor_f64_ndim( tensor: *const TfeTensorF64, status: *mut tfe_status_t, ) -> usize
Expand description

Return the number of dimensions (rank) of the tensor.

Returns 0 if tensor is null (and sets status to TFE_INVALID_ARGUMENT).

ยงSafety

  • tensor must be a valid tensor pointer or null.
  • status must be a valid, non-null pointer.