This class is the main plugin interface and serves to initialize and configure the plugin. More...
Public Member Functions | |
def | __init__ (self, device, plugin_dirs=None) |
Class constructor. More... |
|
def | load (self, IENetwork, network, int, num_requests=1, config=None) |
Loads a network that was read from the IR to the plugin and creates an executable network from a network object. More... |
|
def | set_initial_affinity (self, IENetwork, net) |
Sets initial affinity for model layers according to the HETERO plugin logic. More... |
|
def | get_supported_layers (self, IENetwork, net) |
def | add_cpu_extension (self, str, extension_path) |
Loads extensions library to the plugin. More... |
|
This class is the main plugin interface and serves to initialize and configure the plugin.
def ie_api.IEPlugin.__init__ | ( | self, | |
device, | |||
plugin_dirs = None |
|||
) |
Class constructor.
device | Target device name. Supported devices: CPU, GPU, FPGA, MYRIAD, HETERO, MULTI |
plugin_dirs | List of paths to plugin directories |
def ie_api.IEPlugin.add_cpu_extension | ( | self, | |
str, | |||
extension_path, | |||
except | |||
) |
Loads extensions library to the plugin.
Applicable only for a CPU device and a HETERO device with CPU
extension_path | A full path to CPU extensions library |
def ie_api.IEPlugin.load | ( | self, | |
IENetwork, | |||
network, | |||
int, | |||
num_requests = 1 , |
|||
config = None |
|||
) |
Loads a network that was read from the IR to the plugin and creates an executable network from a network object.
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 |
num_requests | A positive integer value of infer requests to be created. Number of infer requests may be limited by device capabilities. |
config | A dictionary of plugin configuration keys and their values |
Usage example:
def ie_api.IEPlugin.set_initial_affinity | ( | self, | |
IENetwork, | |||
net, | |||
except | |||
) |
Sets initial affinity for model layers according to the HETERO plugin logic.
Applicable only if IEPlugin
was initialized for a HETERO device.
net | A valid instance of IENetwork |
Usage example: See affinity
attribute of the IENetLayer
class.