pub struct TensorMeta {
pub shape: Shape,
pub dtype: DType,
}Expand description
Metadata about a tensor (known before materialization).
Fields§
§shape: Shape§dtype: DTypeTrait Implementations§
Source§impl Clone for TensorMeta
impl Clone for TensorMeta
Source§fn clone(&self) -> TensorMeta
fn clone(&self) -> TensorMeta
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 TensorMeta
impl RefUnwindSafe for TensorMeta
impl Send for TensorMeta
impl Sync for TensorMeta
impl Unpin for TensorMeta
impl UnsafeUnpin for TensorMeta
impl UnwindSafe for TensorMeta
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