pub struct TensorSpec {
pub name: String,
pub dtype: DataType,
pub shape: Vec<Dimension>,
}Expand description
One named model input or output contract.
Fields§
§name: StringONNX/model-visible name.
dtype: DataTypeRequired scalar/vector dtype.
shape: Vec<Dimension>Ordered fixed or dynamic dimensions.
Implementations§
Trait Implementations§
Source§impl Clone for TensorSpec
impl Clone for TensorSpec
Source§fn clone(&self) -> TensorSpec
fn clone(&self) -> TensorSpec
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 TensorSpec
impl Debug for TensorSpec
Source§impl PartialEq for TensorSpec
impl PartialEq for TensorSpec
Source§fn eq(&self, other: &TensorSpec) -> bool
fn eq(&self, other: &TensorSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TensorSpec
impl StructuralPartialEq for TensorSpec
Auto Trait Implementations§
impl Freeze for TensorSpec
impl RefUnwindSafe for TensorSpec
impl Send for TensorSpec
impl Sync for TensorSpec
impl Unpin for TensorSpec
impl UnsafeUnpin for TensorSpec
impl UnwindSafe for TensorSpec
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