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

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

#include <ie_inetwork.hpp>

Public Types

using  Ptr = std::shared_ptr< INetwork >
  A shared pointer to the INetwork object.
 
using  const_iterator = details::INetworkIterator< const INetwork, const ILayer >
  A constant iterator for INetwork objects 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::Ptr  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::Ptr getInputs () const noexcept=0
  Returns a constant vector of input layers. More...
 
virtual const std::vector< ILayer::Ptr 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...
 

Detailed Description

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

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::Ptr> InferenceEngine::INetwork::getInputs ( ) const
pure virtualnoexcept

Returns a constant vector of input layers.

Returns
Vector of input layers

§ getLayer()

virtual const ILayer::Ptr 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
id Id 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
layerId layer 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::Ptr> 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: