[−][src]Struct onnx_helpers::nodes::Node
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.
fn add(self, rhs: Rhs) -> Self::Output
[src]
impl<'_, Rhs: AsRef<Node>> Add<Rhs> for &'_ Node
[src]
type Output = Node
The resulting type after applying the +
operator.
fn add(self, rhs: Rhs) -> Self::Output
[src]
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.
fn div(self, rhs: Rhs) -> Self::Output
[src]
impl<'_, Rhs: AsRef<Node>> Div<Rhs> for &'_ Node
[src]
type Output = Node
The resulting type after applying the /
operator.
fn div(self, rhs: Rhs) -> Self::Output
[src]
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.
fn mul(self, rhs: Rhs) -> Self::Output
[src]
impl<'_, Rhs: AsRef<Node>> Mul<Rhs> for &'_ Node
[src]
type Output = Node
The resulting type after applying the *
operator.
fn mul(self, rhs: Rhs) -> Self::Output
[src]
impl<'_> Neg for &'_ Node
[src]
type Output = Node
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Node
[src]
type Output = Node
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Not for &'_ Node
[src]
type Output = Node
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl Not for Node
[src]
type Output = Node
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl<Rhs: AsRef<Node>> Sub<Rhs> for Node
[src]
type Output = Node
The resulting type after applying the -
operator.
fn sub(self, rhs: Rhs) -> Self::Output
[src]
impl<'_, Rhs: AsRef<Node>> Sub<Rhs> for &'_ Node
[src]
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]
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>,