This class represents a network instance loaded to plugin and ready for inference. More...
Public Member Functions | |
def | __init__ (self) |
There is no explicit class constructor. More... |
|
def | infer (self, inputs=None) |
Starts synchronous inference for the first infer request of the executable network and returns output data. More... |
|
def | start_async (self, request_id, inputs=None) |
Starts asynchronous inference for specified infer request. More... |
|
def | get_exec_graph_info (self) |
Gets executable graph information from a device. More... |
|
def | get_metric (self, metric_name) |
Gets general runtime metric for an executable network. More... |
|
def | export (self, model_file) |
Exports the current executable network. More... |
|
This class represents a network instance loaded to plugin and ready for inference.
def ie_api.ExecutableNetwork.__init__ | ( | self | ) |
There is no explicit class constructor.
To make a valid instance of ExecutableNetwork
, use load()
method of the IEPlugin
class.
def ie_api.ExecutableNetwork.export | ( | self, | |
model_file | |||
) |
Exports the current executable network.
model_file | Full path to the target exported file location |
def ie_api.ExecutableNetwork.get_exec_graph_info | ( | self | ) |
Gets executable graph information from a device.
IENetwork
Usage example:
def ie_api.ExecutableNetwork.get_metric | ( | self, | |
metric_name | |||
) |
Gets general runtime metric for an executable network.
It can be network name, actual device ID on which executable network is running or all other properties which cannot be changed dynamically.
metric_name | A metric name to request. |
Usage example:
def ie_api.ExecutableNetwork.infer | ( | self, | |
inputs = None |
|||
) |
Starts synchronous inference for the first infer request of the executable network and returns output data.
Wraps infer()
method of the InferRequest
class
inputs | A dictionary that maps input layer names to numpy.ndarray objects of proper shape with input data for the layer |
numpy.ndarray
objects with output data of the layerUsage example:
def ie_api.ExecutableNetwork.start_async | ( | self, | |
request_id, | |||
inputs = None |
|||
) |
Starts asynchronous inference for specified infer request.
Wraps async_infer()
method of the InferRequest
class.
request_id | Index of infer request to start inference |
inputs | A dictionary that maps input layer names to numpy.ndarray objects of proper shape with input data for the layer |
InferRequest
class.Usage example: