[][src]Struct onnx_helpers::nodes::Node

pub struct Node { /* fields omitted */ }

Node wrapper.

Methods

impl Node[src]

pub fn from_proto(inner: NodeProto) -> Self[src]

Creates new node from proto.

pub fn name(&self) -> &str[src]

Returns node name.

pub fn proto(&self) -> &NodeProto[src]

Returns protocol buffers representation.

pub fn sqrt(&self) -> Node[src]

Creates new square root operation.

pub fn pow<T: Into<String>>(&self, power: T) -> Node[src]

Creates new power operation.

pub fn sum<A: Into<Axes>>(&self, axes: A, keepdims: bool) -> Node[src]

Creates new reduce sum operation.

pub fn mean<A: Into<Axes>>(&self, axes: A, keepdims: bool) -> Node[src]

Creates new reduce mean operation.

Trait Implementations

impl<'_, Rhs: AsRef<Node>> Add<Rhs> for &'_ Node[src]

type Output = Node

The resulting type after applying the + operator.

impl<Rhs: AsRef<Node>> Add<Rhs> for Node[src]

type Output = Node

The resulting type after applying the + operator.

impl AsRef<Node> for Add[src]

impl AsRef<Node> for Constant[src]

impl AsRef<Node> for Node[src]

impl AsRef<Node> for Div[src]

impl AsRef<Node> for Mul[src]

impl AsRef<Node> for Neg[src]

impl AsRef<Node> for Pow[src]

impl AsRef<Node> for ReduceMean[src]

impl AsRef<Node> for ReduceSum[src]

impl AsRef<Node> for Sqrt[src]

impl AsRef<Node> for Sub[src]

impl AsRef<NodeProto> for Node[src]

impl Clone for Node[src]

impl<'_, Rhs: AsRef<Node>> Div<Rhs> for &'_ Node[src]

type Output = Node

The resulting type after applying the / operator.

impl<Rhs: AsRef<Node>> Div<Rhs> for Node[src]

type Output = Node

The resulting type after applying the / operator.

impl<'_> From<&'_ Node> for String[src]

impl From<Node> for String[src]

impl From<NodeProto> for Node[src]

impl Into<Node> for Node[src]

impl Into<Node> for Add[src]

impl Into<Node> for Sub[src]

impl Into<Node> for Constant[src]

impl Into<Node> for Div[src]

impl Into<Node> for Mul[src]

impl Into<Node> for Neg[src]

impl Into<Node> for Pow[src]

impl Into<Node> for ReduceMean[src]

impl Into<Node> for ReduceSum[src]

impl Into<Node> for Sqrt[src]

impl Into<NodeProto> for Node[src]

impl<'_, Rhs: AsRef<Node>> Mul<Rhs> for &'_ Node[src]

type Output = Node

The resulting type after applying the * operator.

impl<Rhs: AsRef<Node>> Mul<Rhs> for Node[src]

type Output = Node

The resulting type after applying the * operator.

impl<'_> Neg for &'_ Node[src]

type Output = Node

The resulting type after applying the - operator.

impl Neg for Node[src]

type Output = Node

The resulting type after applying the - operator.

impl<'_, Rhs: AsRef<Node>> Sub<Rhs> for &'_ Node[src]

type Output = Node

The resulting type after applying the - operator.

impl<Rhs: AsRef<Node>> Sub<Rhs> for Node[src]

type Output = Node

The resulting type after applying the - operator.

Auto Trait Implementations

impl !RefUnwindSafe for Node

impl !Send for Node

impl !Sync for Node

impl Unpin for Node

impl !UnwindSafe for Node

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.