atan.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 v0
16  {
17  /// \brief Elementwise inverse tangent (arctan) operation.
18  ///
19  class NGRAPH_API Atan : public util::UnaryElementwiseArithmetic
20  {
21  public:
22  static constexpr NodeTypeInfo type_info{"Atan", 0};
23  const NodeTypeInfo& get_type_info() const override { return type_info; }
24  /// \brief Constructs an arctan operation.
25  Atan() = default;
26 
27  /// \brief Constructs an arctan operation.
28  ///
29  /// \param arg Output that produces the input tensor.<br>
30  /// `[d1, ...]`
31  ///
32  /// Output `[d1, ...]`
33  ///
34  Atan(const Output<Node>& arg);
35 
36  virtual std::shared_ptr<Node>
37  clone_with_new_inputs(const OutputVector& new_args) const override;
38  bool visit_attributes(AttributeVisitor& visitor) override { return true; }
39  bool evaluate(const HostTensorVector& outputs,
40  const HostTensorVector& inputs) const override;
41  bool has_evaluate() const override;
42  };
43  } // namespace v0
44  using v0::Atan;
45  } // namespace op
46 } // 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 tangent (arctan) operation.
Definition: atan.hpp:20
bool has_evaluate() const override
Allows to get information about availability of evaluate method for the current operation.
Atan()=default
Constructs an arctan operation.
const NodeTypeInfo & get_type_info() const override
Definition: atan.hpp:23
Atan(const Output< Node > &arg)
Constructs an arctan operation.
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16
Definition: type.hpp:27