[−][src]Struct onnx_helpers::builder::Value
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]
fn into(self) -> ValueInfoProto
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,