This class represents an Inference Engine entity and allows you to manipulate with plugins using unified interfaces. More...
Public Member Functions | |
def | __init__ (self, xml_config_file="") |
Class constructor. More... |
|
def | get_versions (self, device_name) |
Get a namedtuple object with versions of the plugin specified. More... |
|
def | load_network (self, IENetwork, network, str, device_name, config=None, int, num_requests=1) |
Loads a network that was read from the Intermediate Representation (IR) to the plugin with specified device name and creates an ExecutableNetwork object of the IENetwork class. More... |
|
def | query_network (self, IENetwork, network, str, device_name, config=None) |
Queries the plugin with specified device name what network layers are supported in the current configuration. More... |
|
def | register_plugin (self, plugin_name, device_name) |
Registers plugins specified in an .xml configuration file. More... |
|
def | register_plugins (self, xml_config_file) |
Registers plugins specified in an .xml configuration file. More... |
|
def | unregister_plugin (self, device_name) |
Unregisters a plugin with a specified device name. More... |
|
def | add_extension |
Loads extension library to the plugin with a specified device name. More... |
|
def | get_metric |
Gets a general runtime metric for dedicated hardware. More... |
|
This class represents an Inference Engine entity and allows you to manipulate with plugins using unified interfaces.
def ie_api.IECore.__init__ | ( | self, | |
xml_config_file = "" |
|||
) |
Class constructor.
xml_config_file | A full path to .xml file containing plugins configuration. If the parameter is not specified, the default configuration is handled automatically. |
def ie_api.IECore.add_extension | ( | self, | |
extension_path, | |||
device_name | |||
) |
Loads extension library to the plugin with a specified device name.
extension_path | Path to the extensions library file to load to a plugin |
device_name | A device name of a plugin to load the extensions to |
Usage example:
def ie_api.IECore.get_metric | ( | self, | |
device_name, | |||
metric_name | |||
) |
Gets a general runtime metric for dedicated hardware.
Enables to request common device properties, which are ExecutableNetwork
agnostic, such as device name, temperature, and other devices-specific values.
device_name | A name of a device to get a metric value. |
metric_name | A metric name to request. |
Usage example:
def ie_api.IECore.get_versions | ( | self, | |
device_name | |||
) |
Get a namedtuple
object with versions of the plugin specified.
device_name | Name of the the registered plugin |
Versions
namedtuple
object with the following fields:major
- major plugin integer versionminor
- minor plugin integer versionbuild_number
- plugin build number stringdescription
- plugin description string def ie_api.IECore.load_network | ( | self, | |
IENetwork, | |||
network, | |||
str, | |||
device_name, | |||
config = None , |
|||
int, | |||
num_requests = 1 |
|||
) |
Loads a network that was read from the Intermediate Representation (IR) to the plugin with specified device name and creates an ExecutableNetwork
object of the IENetwork
class.
You can create as many networks as you need and use them simultaneously (up to the limitation of the hardware resources).
network | A valid IENetwork instance |
device_name | A device name of a target plugin |
config | A dictionary of plugin configuration keys and their values |
num_requests | A positive integer value of infer requests to be created. Number of infer requests is limited by device capabilities. |
ExecutableNetwork
objectUsage example:
def ie_api.IECore.query_network | ( | self, | |
IENetwork, | |||
network, | |||
str, | |||
device_name, | |||
config = None |
|||
) |
Queries the plugin with specified device name what network layers are supported in the current configuration.
Please note that layers support depends on plugin configuration and loaded extensions.
network | A valid IENetwork instance |
device_name | A device name of a target plugin |
config | A dictionary of plugin configuration keys and their values |
Usage example:
def ie_api.IECore.register_plugin | ( | self, | |
plugin_name, | |||
device_name | |||
) |
Registers plugins specified in an .xml
configuration file.
plugin_name | A name of a plugin. Depending on a platform, plugin_name is wrapped with a shared library suffix and a prefix to identify a full name of the library |
device_name | A target device name for the plugin. If not specified, the method registers a plugin with the default name. |
Usage example:
def ie_api.IECore.register_plugins | ( | self, | |
xml_config_file | |||
) |
Registers plugins specified in an .xml
configuration file.
xml_config_file | A full path to .xml file containing plugins configuration |
Usage example:
def ie_api.IECore.unregister_plugin | ( | self, | |
device_name | |||
) |
Unregisters a plugin with a specified device name.
device_name | A device name of the plugin to unregister |
Usage example: