pub enum Attribute {
Float(f32),
Floats(Vec<f32>),
Int(i64),
Ints(Vec<i64>),
Bytes(Vec<u8>),
String(String),
Strings(Vec<String>),
Tensor(TensorProto),
Tensors(Vec<TensorProto>),
Graph(GraphProto),
Graphs(Vec<GraphProto>),
}
Expand description
Attribute constructor.
Variants§
Float(f32)
Floats(Vec<f32>)
Int(i64)
Ints(Vec<i64>)
Bytes(Vec<u8>)
String(String)
Strings(Vec<String>)
Tensor(TensorProto)
Tensors(Vec<TensorProto>)
Graph(GraphProto)
Graphs(Vec<GraphProto>)
Trait Implementations§
Source§impl From<GraphProto> for Attribute
impl From<GraphProto> for Attribute
Source§fn from(v: GraphProto) -> Self
fn from(v: GraphProto) -> Self
Converts to this type from the input type.
Source§impl From<TensorProto> for Attribute
impl From<TensorProto> for Attribute
Source§fn from(v: TensorProto) -> Self
fn from(v: TensorProto) -> Self
Converts to this type from the input type.
Source§impl From<Vec<GraphProto>> for Attribute
impl From<Vec<GraphProto>> for Attribute
Source§fn from(v: Vec<GraphProto>) -> Self
fn from(v: Vec<GraphProto>) -> Self
Converts to this type from the input type.
Source§impl From<Vec<TensorProto>> for Attribute
impl From<Vec<TensorProto>> for Attribute
Source§fn from(v: Vec<TensorProto>) -> Self
fn from(v: Vec<TensorProto>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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