Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / include / builders / ie_split_layer.hpp
1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4
5 #pragma once
6
7 #include <builders/ie_layer_decorator.hpp>
8 #include <ie_network.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 LayerDecorator {
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 layer pointer to generic builder
28      */
29     explicit SplitLayer(const Layer::Ptr& layer);
30     /**
31      * @brief The constructor creates a builder from generic builder
32      * @param layer constant pointer to generic builder
33      */
34     explicit SplitLayer(const Layer::CPtr& layer);
35     /**
36      * @brief Sets the name for the layer
37      * @param name Layer name
38      * @return reference to layer builder
39      */
40     SplitLayer& setName(const std::string& name);
41
42     /**
43      * @brief Returns output ports
44      * @return Vector of output ports
45      */
46     const std::vector<Port>& getOutputPorts() const;
47     /**
48      * @brief Sets output ports
49      * @param ports Vector of output ports
50      * @return reference to layer builder
51      */
52     SplitLayer& setOutputPorts(const std::vector<Port>& ports);
53     /**
54      * @brief Returns input port
55      * @return Input port
56      */
57     const Port& getInputPort() const;
58     /**
59      * @brief Sets input port
60      * @param port Input port
61      * @return reference to layer builder
62      */
63     SplitLayer& setInputPort(const Port& port);
64     /**
65      * @brief Returns axis
66      * @return Axis
67      */
68     size_t getAxis() const;
69     /**
70      * @brief Sets axis
71      * @param axis Axis
72      * @return reference to layer builder
73      */
74     SplitLayer& setAxis(size_t axis);
75 };
76
77 }  // namespace Builder
78 }  // namespace InferenceEngine