onnx_helpers/nodes/ops/
tanh.rs

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