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

pub struct Node { /* fields omitted */ }

Node wrapper.

Implementations

impl Node[src]

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

Creates new node from proto.

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

Returns node name.

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

Renames output names accordingly.

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

Creates new absolute operation.

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 max<A: Into<Axes>>(&self, axes: A, keepdims: bool) -> Node[src]

Creates new reduce max operation.

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

Creates new reduce mean operation.

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

Creates new reduce min operation.

pub fn equal<Rhs: Into<String>>(&self, right: Rhs) -> Node[src]

Creates new equal comparison operation.

pub fn greater<Rhs: Into<String>>(&self, right: Rhs) -> Node[src]

Creates new greater comparison operation.

pub fn less<Rhs: Into<String>>(&self, right: Rhs) -> Node[src]

Creates new less comparison operation.

pub fn and<Rhs: Into<String>>(&self, right: Rhs) -> Node[src]

Creates new logical and operation.

pub fn or<Rhs: Into<String>>(&self, right: Rhs) -> Node[src]

Creates new logical or operation.

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

Creates new relu activation operation.

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

Creates new tanh activation operation.

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

Creates new size 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 Abs[src]

impl AsRef<Node> for Add[src]

impl AsRef<Node> for Neg[src]

impl AsRef<Node> for Not[src]

impl AsRef<Node> for Or[src]

impl AsRef<Node> for Pow[src]

impl AsRef<Node> for ReduceMax[src]

impl AsRef<Node> for ReduceMean[src]

impl AsRef<Node> for ReduceMin[src]

impl AsRef<Node> for ReduceSum[src]

impl AsRef<Node> for Relu[src]

impl AsRef<Node> for Size[src]

impl AsRef<Node> for And[src]

impl AsRef<Node> for Sqrt[src]

impl AsRef<Node> for Sub[src]

impl AsRef<Node> for Tanh[src]

impl AsRef<Node> for Node[src]

impl AsRef<Node> for Concat[src]

impl AsRef<Node> for Constant[src]

impl AsRef<Node> for Div[src]

impl AsRef<Node> for Equal[src]

impl AsRef<Node> for Greater[src]

impl AsRef<Node> for Less[src]

impl AsRef<Node> for Mul[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 Abs[src]

impl Into<Node> for Mul[src]

impl Into<Node> for Neg[src]

impl Into<Node> for Not[src]

impl Into<Node> for Or[src]

impl Into<Node> for Pow[src]

impl Into<Node> for ReduceMax[src]

impl Into<Node> for ReduceMean[src]

impl Into<Node> for ReduceMin[src]

impl Into<Node> for ReduceSum[src]

impl Into<Node> for Relu[src]

impl Into<Node> for Add[src]

impl Into<Node> for Size[src]

impl Into<Node> for Sqrt[src]

impl Into<Node> for Sub[src]

impl Into<Node> for Tanh[src]

impl Into<Node> for And[src]

impl Into<Node> for Concat[src]

impl Into<Node> for Constant[src]

impl Into<Node> for Div[src]

impl Into<Node> for Equal[src]

impl Into<Node> for Greater[src]

impl Into<Node> for Less[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<'_> Not for &'_ Node[src]

type Output = Node

The resulting type after applying the ! operator.

impl Not 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.