[][src]Enum onnx_pb::Attribute

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>),
}

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

impl Clone for Attribute[src]

impl Debug for Attribute[src]

impl Display for Attribute[src]

impl<'_> From<&'_ str> for Attribute[src]

impl From<Axes> for Attribute[src]

impl From<GraphProto> for Attribute[src]

impl From<String> for Attribute[src]

impl From<TensorProto> for Attribute[src]

impl<'_> From<Vec<&'_ str>> for Attribute[src]

impl From<Vec<GraphProto>> for Attribute[src]

impl From<Vec<String>> for Attribute[src]

impl From<Vec<TensorProto>> for Attribute[src]

impl From<Vec<f32>> for Attribute[src]

impl From<Vec<i64>> for Attribute[src]

impl From<Vec<u8>> for Attribute[src]

impl From<bool> for Attribute[src]

impl From<f32> for Attribute[src]

impl From<i64> for Attribute[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.