[][src]Struct onnx_helpers::builder::Graph

pub struct Graph { /* fields omitted */ }

Graph builder.

Implementations

impl Graph[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 graph name.

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

Sets graph doc_string.

pub fn constant<S: Into<String>, T: Into<TensorProto>>(
    &mut self,
    name: S,
    tensor: T
) -> Node
[src]

Creates constant node in a graph.

pub fn concat<I>(&mut self, axis: i64, inputs: I) -> Node where
    I: IntoIterator,
    I::Item: Into<String>, 
[src]

Creates a concat node in a graph.

pub fn nodes<T: Into<NodeProto>>(self, node: T) -> Self[src]

Inserts graph nodes.

pub fn inputs<T: Into<ValueInfoProto>>(self, input: T) -> Self[src]

Inserts graph inputs.

pub fn outputs<T: Into<ValueInfoProto>>(self, output: T) -> Self[src]

Inserts graph outputs.

pub fn outputs_typed<T: Into<ValueInfoProto>, D: Into<TypeProto>>(
    self,
    output: T,
    typ: D
) -> Self
[src]

Inserts typed graph outputs.

pub fn initializer<T: Into<TensorProto>>(self, initializer: T) -> Self[src]

Inserts graph initializers.

pub fn node<T: Into<String>>(&mut self, name: T) -> Node[src]

Creates graph node builder.

pub fn input<T: Into<String>>(&mut self, name: T) -> Value[src]

Creates graph input builder.

pub fn output<T: Into<String>>(&mut self, name: T) -> Value[src]

Creates graph output builder.

pub fn model(self) -> Model[src]

Builds a model builder from graph.

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

Builds the graph.

Trait Implementations

impl Clone for Graph[src]

impl Default for Graph[src]

impl Into<GraphProto> for Graph[src]

Auto Trait Implementations

impl !RefUnwindSafe for Graph

impl !Send for Graph

impl !Sync for Graph

impl Unpin for Graph

impl !UnwindSafe for Graph

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.