pub trait DLTensorExt {
// Required methods
fn numel(&self) -> usize;
fn item_size(&self) -> usize;
}
Expand description
DLTensorExt trait This trait provides methods to get the number of elements and the item size of a DLTensor
pub trait DLTensorExt {
// Required methods
fn numel(&self) -> usize;
fn item_size(&self) -> usize;
}
DLTensorExt trait This trait provides methods to get the number of elements and the item size of a DLTensor