This class is the main interface to describe the Inference Engine network.
More...
#include <ie_network.hpp>
|
virtual |
~INetwork ()=default |
|
Virtual destructor for the network interface.
|
|
virtual const_iterator |
begin () const noexcept=0 |
|
Begin network iterator. More...
|
|
virtual const_iterator |
end () const noexcept=0 |
|
End network iterator. More...
|
|
virtual size_t |
size () const noexcept=0 |
|
Returns a number of layers in the network. More...
|
|
virtual const ILayer::CPtr |
getLayer (idx_t id) const noexcept=0 |
|
Returns a constant smart pointer to a Layer interface. If the layer is missing, returns nullptr. More...
|
|
virtual const std::vector< ILayer::CPtr > |
getInputs () const noexcept=0 |
|
Returns a constant vector of input layers. More...
|
|
virtual const std::vector< ILayer::CPtr > |
getOutputs () const noexcept=0 |
|
Returns a constant vector of output layers. More...
|
|
virtual const std::vector< Connection > |
getLayerConnections (idx_t layerId) const noexcept=0 |
|
Returns a constant vector of connections for specific layer. If the layer is missing, returns empty vector. More...
|
|
virtual const std::string & |
getName () const noexcept=0 |
|
Returns a network name. More...
|
|
virtual const Context & |
getContext () const noexcept=0 |
|
Returns a network context. More...
|
|
This class is the main interface to describe the Inference Engine network.
All methods here are constant and do not throw exceptions.
§ begin()
Begin network iterator.
- Returns
- const INetwork iterator
§ end()
End network iterator.
- Returns
- const INetwork iterator
§ getContext()
virtual const Context& InferenceEngine::INetwork::getContext |
( |
|
) |
const |
|
pure virtualnoexcept |
Returns a network context.
- Returns
- const reference to Context
§ getInputs()
virtual const std::vector<ILayer::CPtr> InferenceEngine::INetwork::getInputs |
( |
|
) |
const |
|
pure virtualnoexcept |
Returns a constant vector of input layers.
- Returns
- Vector of input layers
§ getLayer()
virtual const ILayer::CPtr InferenceEngine::INetwork::getLayer |
( |
idx_t |
id |
) |
const |
|
pure virtualnoexcept |
Returns a constant smart pointer to a Layer interface. If the layer is missing, returns nullptr.
- Parameters
-
- Returns
- Layer interface smart pointer
§ getLayerConnections()
virtual const std::vector<Connection> InferenceEngine::INetwork::getLayerConnections |
( |
idx_t |
layerId |
) |
const |
|
pure virtualnoexcept |
Returns a constant vector of connections for specific layer. If the layer is missing, returns empty vector.
- Parameters
-
- Returns
- Vector of connections
§ getName()
virtual const std::string& InferenceEngine::INetwork::getName |
( |
|
) |
const |
|
pure virtualnoexcept |
Returns a network name.
- Returns
- Network name
§ getOutputs()
virtual const std::vector<ILayer::CPtr> InferenceEngine::INetwork::getOutputs |
( |
|
) |
const |
|
pure virtualnoexcept |
Returns a constant vector of output layers.
- Returns
- Vector of output layers
§ size()
virtual size_t InferenceEngine::INetwork::size |
( |
|
) |
const |
|
pure virtualnoexcept |
Returns a number of layers in the network.
- Returns
- Layers count
The documentation for this class was generated from the following file: