Function executorch_sys::torch::executor::TensorImpl_nbytes

source ·
pub unsafe extern "C" fn TensorImpl_nbytes(
    this: *const TensorImpl,
) -> usize
Expand 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.