atanh.hpp
1 //*****************************************************************************
2 // Copyright 2017-2020 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //*****************************************************************************
16 
17 #pragma once
18 
19 #include <memory>
20 
21 #include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
22 
23 namespace ngraph
24 {
25  namespace op
26  {
27  namespace v3
28  {
29  /// \brief Elementwise inverse hyperbolic tangent operation.
30  ///
31  class NGRAPH_API Atanh : public util::UnaryElementwiseArithmetic
32  {
33  public:
34  static constexpr NodeTypeInfo type_info{"Atanh", 3};
35  const NodeTypeInfo& get_type_info() const override { return type_info; }
36  /// \brief Constructs an Atanh operation.
37  Atanh() = default;
38  /// \brief Constructs an Atanh operation.
39  ///
40  /// \param arg Output that produces the input tensor.<br>
41  /// `[d1, ...]`
42  ///
43  /// Output `[d1, ...]`
44  ///
45  Atanh(const Output<Node>& arg);
46 
47  virtual std::shared_ptr<Node>
48  clone_with_new_inputs(const OutputVector& new_args) const override;
49  bool visit_attributes(AttributeVisitor& visitor) override { return true; }
50  bool evaluate(const HostTensorVector& outputs,
51  const HostTensorVector& inputs) const override;
52  };
53  }
54  using v3::Atanh;
55  }
56 }
ngraph::op::v3::Atanh::Atanh
Atanh()=default
Constructs an Atanh operation.
ngraph::op::util::UnaryElementwiseArithmetic
Abstract base class for elementwise unary arithmetic operations, i.e., operations where the same scal...
Definition: unary_elementwise_arithmetic.hpp:49
ngraph
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28
ngraph::op::v3::Atanh
Elementwise inverse hyperbolic tangent operation.
Definition: atanh.hpp:32
ngraph::AttributeVisitor
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:70
ngraph::op::v3::Atanh::get_type_info
const NodeTypeInfo & get_type_info() const override
Definition: atanh.hpp:35
ngraph::op::v3::Atanh::Atanh
Atanh(const Output< Node > &arg)
Constructs an Atanh operation.