ie_split_layer.hpp
1 // Copyright (C) 2018 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #pragma once
6 
7 #include <builders/ie_layer_fragment.hpp>
8 #include <ie_inetwork.hpp>
9 #include <string>
10 #include <vector>
11 
12 namespace InferenceEngine {
13 namespace Builder {
14 
15 /**
16  * @brief The class represents a builder for Split layer
17  */
18 class INFERENCE_ENGINE_API_CLASS(SplitLayer): public LayerFragment {
19 public:
20  /**
21  * @brief The constructor creates a builder with the name
22  * @param name Layer name
23  */
24  explicit SplitLayer(const std::string& name = "");
25  /**
26  * @brief The constructor creates a builder from generic builder
27  * @param genLayer generic builder
28  */
29  explicit SplitLayer(Layer& genLayer);
30  /**
31  * @brief Sets the name for the layer
32  * @param name Layer name
33  * @return reference to layer builder
34  */
35  SplitLayer& setName(const std::string& name);
36 
37  /**
38  * @brief Returns output ports
39  * @return Vector of output ports
40  */
41  const std::vector<Port>& getOutputPorts() const;
42  /**
43  * @brief Sets output ports
44  * @param ports Vector of output ports
45  * @return reference to layer builder
46  */
47  SplitLayer& setOutputPorts(const std::vector<Port>& ports);
48  /**
49  * @brief Returns input port
50  * @return Input port
51  */
52  const Port& getInputPort() const;
53  /**
54  * @brief Sets input port
55  * @param port Input port
56  * @return reference to layer builder
57  */
58  SplitLayer& setInputPort(const Port& port);
59  /**
60  * @brief Returns axis
61  * @return Axis
62  */
63  size_t getAxis() const;
64  /**
65  * @brief Sets axis
66  * @param axis Axis
67  * @return reference to layer builder
68  */
69  SplitLayer& setAxis(size_t axis);
70 };
71 
72 } // namespace Builder
73 } // namespace InferenceEngine
Definition: ie_argmax_layer.hpp:11
a header file for the Inference Engine Network interface