[−][src]Struct onnx_helpers::nodes::Node
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.
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 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.
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 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.
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<'_, 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>,