[][src]Struct onnx_helpers::builder::Value

pub struct Value { /* fields omitted */ }

Value info builder.

Implementations

impl Value[src]

pub fn new<S: Into<String>>(name: S) -> Self[src]

Creates a new builder.

pub fn name<S: Into<String>>(self, name: S) -> Self[src]

Sets value name.

pub fn typed<T: Into<DataType>>(self, elem_type: T) -> Self[src]

Sets value element type.

pub fn shape<D: Into<Dimension>>(self, shape: Vec<D>) -> Self[src]

Sets value shape.

pub fn dim<D: Into<Dimension>>(self, dim: D) -> Self[src]

Inserts value dimension.

pub fn node(self) -> Node[src]

Creates node for input. Requires builder to be bagged.

pub fn build(self) -> ValueInfoProto[src]

Builds the value info.

Trait Implementations

impl Clone for Value[src]

impl Default for Value[src]

impl Into<ValueInfoProto> for Value[src]

Auto Trait Implementations

impl !RefUnwindSafe for Value

impl !Send for Value

impl !Sync for Value

impl Unpin for Value

impl !UnwindSafe for Value

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, 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.