min.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/arithmetic_reduction.hpp"
8 #include "ngraph/op/util/arithmetic_reductions_keep_dims.hpp"
9 
10 namespace ngraph
11 {
12  namespace op
13  {
14  namespace v1
15  {
16  class NGRAPH_API ReduceMin : public util::ArithmeticReductionKeepDims
17  {
18  public:
19  NGRAPH_RTTI_DECLARATION;
20  /// \brief Constructs a summation operation.
21  ReduceMin() = default;
22  /// \brief Constructs a summation operation.
23  ///
24  /// \param arg The tensor to be summed.
25  /// \param reduction_axes The axis positions (0-based) to be eliminated.
26  /// \param keep_dims If set to 1 it holds axes that are used for reduction.
27  ReduceMin(const Output<Node>& arg,
28  const Output<Node>& reduction_axes,
29  bool keep_dims = false);
30 
31  virtual std::shared_ptr<Node>
32  clone_with_new_inputs(const OutputVector& new_args) const override;
33 
34  bool evaluate(const HostTensorVector& outputs,
35  const HostTensorVector& inputs) const override;
36  bool has_evaluate() const override;
37  bool evaluate_lower(const HostTensorVector& outputs) const override;
38  bool evaluate_upper(const HostTensorVector& outputs) const override;
39  };
40  } // namespace v1
41  } // namespace op
42 } // namespace ngraph
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Definition: arithmetic_reductions_keep_dims.hpp:17
Definition: min.hpp:17
bool has_evaluate() const override
Allows to get information about availability of evaluate method for the current operation.
ReduceMin(const Output< Node > &arg, const Output< Node > &reduction_axes, bool keep_dims=false)
Constructs a summation operation.
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
ReduceMin()=default
Constructs a summation operation.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16