pub struct TensorInfo {
pub data: *mut u8,
pub size: usize,
pub tensor_type: TensorType,
pub ndims: u32,
pub dims: [i32; 5],
}Expand description
Tensor metadata descriptor.
Fields§
§data: *mut u8Pointer to tensor data in the arena.
size: usizeTotal size in bytes.
tensor_type: TensorTypeElement type.
ndims: u32Number of dimensions.
dims: [i32; 5]Shape array (up to 5 dimensions).
Trait Implementations§
Source§impl Clone for TensorInfo
impl Clone for TensorInfo
Source§fn clone(&self) -> TensorInfo
fn clone(&self) -> TensorInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TensorInfo
impl RefUnwindSafe for TensorInfo
impl !Send for TensorInfo
impl !Sync for TensorInfo
impl Unpin for TensorInfo
impl UnwindSafe for TensorInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more