Public Types | Public Member Functions
InferenceEngine::INetwork Class Referenceabstract

This class is the main interface to describe the Inference Engine network. More...

#include <ie_network.hpp>

Public Types

using CPtr = std::shared_ptr< const INetwork >
 A shared pointer to the constant INetwork object.
 
using const_iterator = details::INetworkIterator< const INetwork, const ILayer >
 A constant iterator for INetwork definition.
 

Public Member Functions

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::CPtrgetInputs () const noexcept=0
 Returns a constant vector of input layers. More...
 
virtual const std::vector< ILayer::CPtrgetOutputs () const noexcept=0
 Returns a constant vector of output layers. More...
 
virtual const std::vector< ConnectiongetLayerConnections (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 Context & getContext () const noexcept=0
 Returns a network context. More...
 
virtual const std::string & getName () const noexcept=0
 Returns a network name. More...
 

Detailed Description

This class is the main interface to describe the Inference Engine network.

Deprecated:
Use ngraph API instead.

All methods here are constant and do not throw exceptions.

Member Function Documentation

§ begin()

virtual const_iterator InferenceEngine::INetwork::begin ( ) const
pure virtualnoexcept

Begin network iterator.

Returns
const INetwork iterator

§ end()

virtual const_iterator InferenceEngine::INetwork::end ( ) const
pure virtualnoexcept

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
idId of the Layer
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
layerIdlayer index
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: