onnx_helpers/nodes/ops/
abs.rs

1//! Abs operation.
2
3use crate::{builder, node_to_inner, nodes::Node};
4
5/// Abs node.
6pub struct Abs {
7    inner: Node,
8}
9
10impl Abs {
11    /// Creates new Abs operation.
12    #[inline(always)]
13    pub fn new<T: Into<String>>(input: T) -> Self {
14        Abs {
15            inner: builder::Node::new("Abs").input(input).build(),
16        }
17    }
18}
19
20node_to_inner!(Abs);