[−][src]Struct onnx_helpers::builder::Graph
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]
&mut self,
name: S,
tensor: T
) -> Node
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]
I: IntoIterator,
I::Item: Into<String>,
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]
self,
output: T,
typ: D
) -> Self
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]
fn into(self) -> GraphProto
[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]
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>,