Enum onnx_protobuf::AttributeValue
source · pub enum AttributeValue<'a> {
Show 15 variants
Unknown(i32),
Float32(f32),
Float32s(&'a [f32]),
Integer64(i64),
Integer64s(&'a [i64]),
String(&'a [u8]),
Strings(&'a [Vec<u8>]),
Type(&'a TypeProto),
Types(&'a [TypeProto]),
Graph(&'a GraphProto),
Graphs(&'a [GraphProto]),
Tensor(&'a TensorProto),
Tensors(&'a [TensorProto]),
SparseTensor(&'a SparseTensorProto),
SparseTensors(&'a [SparseTensorProto]),
}
Expand description
Typed onnx attribute value
Variants§
Unknown(i32)
Float32(f32)
Float32s(&'a [f32])
Integer64(i64)
Integer64s(&'a [i64])
String(&'a [u8])
Strings(&'a [Vec<u8>])
Type(&'a TypeProto)
Types(&'a [TypeProto])
Graph(&'a GraphProto)
Graphs(&'a [GraphProto])
Tensor(&'a TensorProto)
Tensors(&'a [TensorProto])
SparseTensor(&'a SparseTensorProto)
SparseTensors(&'a [SparseTensorProto])
Auto Trait Implementations§
impl<'a> Freeze for AttributeValue<'a>
impl<'a> RefUnwindSafe for AttributeValue<'a>
impl<'a> Send for AttributeValue<'a>
impl<'a> Sync for AttributeValue<'a>
impl<'a> Unpin for AttributeValue<'a>
impl<'a> UnwindSafe for AttributeValue<'a>
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