less_eq.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 less-than-or-equal operation.
16  class NGRAPH_API LessEqual : public util::BinaryElementwiseComparison
17  {
18  public:
19  NGRAPH_RTTI_DECLARATION;
20  /// \brief Constructs a less-than-or-equal operation.
22  : util::BinaryElementwiseComparison(AutoBroadcastSpec::NUMPY)
23  {
24  }
25 
26  /// \brief Constructs a less-than-or-equal operation.
27  ///
28  /// \param arg0 Node that produces the first input tensor.
29  /// \param arg1 Node that produces the second input tensor.
30  /// \param auto_broadcast Auto broadcast specification
31  LessEqual(const Output<Node>& arg0,
32  const Output<Node>& arg1,
33  const AutoBroadcastSpec& auto_broadcast =
34  AutoBroadcastSpec(AutoBroadcastType::NUMPY));
35 
36  virtual std::shared_ptr<Node>
37  clone_with_new_inputs(const OutputVector& new_args) const override;
38  bool evaluate(const HostTensorVector& outputs,
39  const HostTensorVector& inputs) const override;
40  bool has_evaluate() const override;
41  };
42  } // namespace v1
43  } // namespace op
44 } // 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 less-than-or-equal operation.
Definition: less_eq.hpp:17
LessEqual()
Constructs a less-than-or-equal operation.
Definition: less_eq.hpp:21
LessEqual(const Output< Node > &arg0, const Output< Node > &arg1, const AutoBroadcastSpec &auto_broadcast=AutoBroadcastSpec(AutoBroadcastType::NUMPY))
Constructs a less-than-or-equal 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.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16
Implicit broadcast specification.
Definition: attr_types.hpp:311