def load_model(self, plugin):
    '\n        This method is for loading the model (in IR format) to the device specified by the user.\n        Default device is CPU.\n        '
    model_structure = (self.model_name + '.xml')
    model_weights = (self.model_name + '.bin')
    self.plugin = plugin
    if (self.extensions and ('CPU' in self.device)):
        self.plugin.add_extension(self.extensions, self.device)
    try:
        self.network = self.plugin.read_network(model=model_structure, weights=model_weights)
    except:
        raise ValueError('Could not initialise the network. Have you entered the correct model path?')
    if (self.device == 'CPU'):
        self.check_model()
    self.exec_network = self.plugin.load_network(network=self.network, device_name=self.device, num_requests=1)
    self.input_blob = next(iter(self.network.inputs))
    self.input_shape = self.network.inputs[self.input_blob].shape
    self.output_blob = next(iter(self.network.outputs))
    self.output_shape = self.network.outputs[self.output_blob].shape
    return
This method is for loading the model (in IR format) to the device specified by the user.
Default device is CPU.
def load_model(self, plugin):
    '\n        This method is for loading the model (in IR format) to the device specified by the user.\n        Default device is CPU.\n        '
    model_structure = (self.model_name + '.xml')
    model_weights = (self.model_name + '.bin')
    self.plugin = plugin
    if (self.extensions and ('CPU' in self.device)):
        self.plugin.add_extension(self.extensions, self.device)
    try:
        self.network = self.plugin.read_network(model=model_structure, weights=model_weights)
    except:
        raise ValueError('Could not initialise the network. Have you entered the correct model path?')
    if (self.device == 'CPU'):
        self.check_model()
    self.exec_network = self.plugin.load_network(network=self.network, device_name=self.device, num_requests=1)
    self.input_blob = next(iter(self.network.inputs))
    self.input_shape = self.network.inputs[self.input_blob].shape
    self.output_blob = next(iter(self.network.outputs))
    self.output_shape = self.network.outputs[self.output_blob].shape
    return