Function executorch_sys::torch::executor::TensorImpl_nbytes
source · pub unsafe extern "C" fn TensorImpl_nbytes(
this: *const TensorImpl,
) -> usizeExpand description
Returns the size of the tensor in bytes.
NOTE: This returns the size of the data used by the tensor’s current shape, not the capacity of the underlying buffer.