floor_mod.hpp
1 //*****************************************************************************
2 // Copyright 2017-2020 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //*****************************************************************************
16 
17 #pragma once
18 
19 #include <memory>
20 
21 #include "ngraph/op/util/binary_elementwise_arithmetic.hpp"
22 
23 namespace ngraph
24 {
25  namespace op
26  {
27  namespace v1
28  {
29  /// \brief Elementwise FloorMod operation.
30  ///
31  class NGRAPH_API FloorMod : public util::BinaryElementwiseArithmetic
32  {
33  public:
34  static constexpr NodeTypeInfo type_info{"FloorMod", 1};
35  const NodeTypeInfo& get_type_info() const override { return type_info; }
36  /// \brief Constructs an uninitialized addition operation
38  : util::BinaryElementwiseArithmetic(AutoBroadcastSpec::NUMPY){};
39 
40  /// \brief Constructs an Floor Mod operation.
41  ///
42  /// \param arg0 Output that produces the first input tensor.<br>
43  /// `[d0, ...]`
44  /// \param arg1 Output that produces the second input tensor.<br>
45  /// `[d0, ...]`
46  /// \param auto_broadcast Auto broadcast specification
47  ///
48  /// Output `[d0, ...]`
49  ///
50  FloorMod(const Output<Node>& arg0,
51  const Output<Node>& arg1,
52  const AutoBroadcastSpec& auto_broadcast = AutoBroadcastType::NUMPY);
53 
54  std::shared_ptr<Node>
55  clone_with_new_inputs(const OutputVector& new_args) const override;
56 
57  bool evaluate(const HostTensorVector& outputs,
58  const HostTensorVector& inputs) const override;
59  };
60  } // namespace v1
61 
62  using v1::FloorMod;
63  } // namespace op
64 } // namespace ngraph
ngraph::op::v1::FloorMod
Elementwise FloorMod operation.
Definition: floor_mod.hpp:32
ngraph::op::v1::FloorMod::FloorMod
FloorMod(const Output< Node > &arg0, const Output< Node > &arg1, const AutoBroadcastSpec &auto_broadcast=AutoBroadcastType::NUMPY)
Constructs an Floor Mod operation.
ngraph::op::AutoBroadcastSpec
Implicit broadcast specification.
Definition: attr_types.hpp:321
ngraph
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28
ngraph::op::v1::FloorMod::get_type_info
const NodeTypeInfo & get_type_info() const override
Definition: floor_mod.hpp:35
ngraph::op::util::BinaryElementwiseArithmetic
Abstract base class for elementwise binary arithmetic operations, i.e., operations where the same sca...
Definition: binary_elementwise_arithmetic.hpp:55
ngraph::op::v1::FloorMod::FloorMod
FloorMod()
Constructs an uninitialized addition operation.
Definition: floor_mod.hpp:37