pub enum TypeProto {
Tensor {
dtype: DataType,
shape: Shape,
},
Sequence(Box<TypeProto>),
Optional(Box<TypeProto>),
Map {
key: DataType,
value: Box<TypeProto>,
},
SparseTensor {
dtype: DataType,
shape: Shape,
},
}Expand description
An ONNX TypeProto: the type of a value, which may be a tensor or a
container of tensors (see docs/ORT2.md §3.2).
Variants§
Trait Implementations§
impl StructuralPartialEq for TypeProto
Auto Trait Implementations§
impl Freeze for TypeProto
impl RefUnwindSafe for TypeProto
impl Send for TypeProto
impl Sync for TypeProto
impl Unpin for TypeProto
impl UnsafeUnpin for TypeProto
impl UnwindSafe for TypeProto
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