asinh.hpp
1 // Copyright (C) 2018-2021 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #pragma once
6 
7 #include <memory>
8 
9 #include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
10 
11 namespace ngraph
12 {
13  namespace op
14  {
15  namespace v3
16  {
17  /// \brief Elementwise inverse hyperbolic sin operation.
18  ///
19  class NGRAPH_API Asinh : public util::UnaryElementwiseArithmetic
20  {
21  public:
22  static constexpr NodeTypeInfo type_info{"Asinh", 3};
23  const NodeTypeInfo& get_type_info() const override { return type_info; }
24  /// \brief Constructs an Asinh operation.
25  Asinh() = default;
26  /// \brief Constructs an Asinh operation.
27  ///
28  /// \param arg Output that produces the input tensor.<br>
29  /// `[d1, ...]`
30  ///
31  /// Output `[d1, ...]`
32  ///
33  Asinh(const Output<Node>& arg);
34 
35  virtual std::shared_ptr<Node>
36  clone_with_new_inputs(const OutputVector& new_args) const override;
37  bool visit_attributes(AttributeVisitor& visitor) override { return true; }
38  bool evaluate(const HostTensorVector& outputs,
39  const HostTensorVector& inputs) const override;
40  bool has_evaluate() const override;
41  };
42  } // namespace v3
43  using v3::Asinh;
44  } // namespace op
45 } // namespace ngraph
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:59
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Abstract base class for elementwise unary arithmetic operations, i.e., operations where the same scal...
Definition: unary_elementwise_arithmetic.hpp:37
Elementwise inverse hyperbolic sin operation.
Definition: asinh.hpp:20
Asinh()=default
Constructs an Asinh operation.
bool has_evaluate() const override
Allows to get information about availability of evaluate method for the current operation.
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
const NodeTypeInfo & get_type_info() const override
Definition: asinh.hpp:23
Asinh(const Output< Node > &arg)
Constructs an Asinh operation.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16
Definition: type.hpp:27