pub struct TensorShape {
pub dims: Vec<usize>,
}Expand description
Shape of a tensor (dimension sizes).
Fields§
§dims: Vec<usize>Dimension sizes (e.g. [8, 8] for 8x8 matrix).
Implementations§
Trait Implementations§
Source§impl Clone for TensorShape
impl Clone for TensorShape
Source§fn clone(&self) -> TensorShape
fn clone(&self) -> TensorShape
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 moreSource§impl Debug for TensorShape
impl Debug for TensorShape
Source§impl<'de> Deserialize<'de> for TensorShape
impl<'de> Deserialize<'de> for TensorShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TensorShape
impl RefUnwindSafe for TensorShape
impl Send for TensorShape
impl Sync for TensorShape
impl Unpin for TensorShape
impl UnsafeUnpin for TensorShape
impl UnwindSafe for TensorShape
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