sink.hpp
1 //*****************************************************************************
2 // Copyright 2017-2021 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 <vector>
20 
21 #include "ngraph/op/op.hpp"
22 
23 namespace ngraph
24 {
25  namespace op
26  {
27  /// Root of nodes that can be sink nodes
28  class NGRAPH_API Sink : public Op
29  {
30  public:
31  virtual ~Sink() = 0;
32  NGRAPH_RTTI_DECLARATION;
33 
34  protected:
35  Sink()
36  : Op()
37  {
38  }
39 
40  explicit Sink(const OutputVector& arguments)
41  : Op(arguments)
42  {
43  }
44  };
45  }
46  using SinkVector = std::vector<std::shared_ptr<op::Sink>>;
47 }
Root of all actual ops.
Definition: op.hpp:29
Root of nodes that can be sink nodes.
Definition: sink.hpp:29
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28