pub struct TensorShape {
pub nb_dims: usize,
pub dims: [i32; 8],
}Expand description
Shape of a dynamic tensor input. Exactly mirrors nvinfer1::Dims
(max 8 dims).
Fields§
§nb_dims: usize§dims: [i32; 8]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 (const: unstable) · 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 PartialEq for TensorShape
impl PartialEq for TensorShape
Source§fn eq(&self, other: &TensorShape) -> bool
fn eq(&self, other: &TensorShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TensorShape
impl Eq for TensorShape
impl StructuralPartialEq for TensorShape
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