greater.hpp
1 // Copyright (C) 2018-2021 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #pragma once
6 
7 #include "ngraph/op/util/binary_elementwise_comparison.hpp"
8 
9 namespace ngraph
10 {
11  namespace op
12  {
13  namespace v1
14  {
15  /// \brief Elementwise greater-than operation.
16  class NGRAPH_API Greater : public util::BinaryElementwiseComparison
17  {
18  public:
19  NGRAPH_RTTI_DECLARATION;
20  /// \brief Constructs a greater-than operation.
22  : util::BinaryElementwiseComparison(AutoBroadcastSpec::NUMPY)
23  {
24  }
25  /// \brief Constructs a greater-than operation.
26  ///
27  /// \param arg0 Node that produces the first input tensor.
28  /// \param arg1 Node that produces the second input tensor.
29  /// \param auto_broadcast Auto broadcast specification
30  Greater(const Output<Node>& arg0,
31  const Output<Node>& arg1,
32  const AutoBroadcastSpec& auto_broadcast =
33  AutoBroadcastSpec(AutoBroadcastType::NUMPY));
34 
35  virtual std::shared_ptr<Node>
36  clone_with_new_inputs(const OutputVector& new_args) const override;
37  bool evaluate(const HostTensorVector& outputs,
38  const HostTensorVector& inputs) const override;
39  bool has_evaluate() const override;
40  };
41  } // namespace v1
42  } // namespace op
43 } // namespace ngraph
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Abstract base class for elementwise binary comparison operations, i.e., operations where the same sca...
Definition: binary_elementwise_comparison.hpp:43
Elementwise greater-than operation.
Definition: greater.hpp:17
Greater(const Output< Node > &arg0, const Output< Node > &arg1, const AutoBroadcastSpec &auto_broadcast=AutoBroadcastSpec(AutoBroadcastType::NUMPY))
Constructs a greater-than operation.
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
bool has_evaluate() const override
Allows to get information about availability of evaluate method for the current operation.
Greater()
Constructs a greater-than operation.
Definition: greater.hpp:21
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16
Implicit broadcast specification.
Definition: attr_types.hpp:311