Skip to content

Commit

Permalink
- Fix the retrieval of input shape from the openvino network (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeyporwal authored May 5, 2022
1 parent fc778b6 commit f656461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nebullvm/inference_learners/openvino.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def from_model_name(
def _rebuild_network(self, input_shapes: Dict):
network = self.exec_network.get_exec_graph_info()
if all(
input_shape == tuple(network.inputs[input_name].shape)
input_shape == tuple(network.input_info[input_name].input_data.shape)
for input_name, input_shape in input_shapes.items()
):
# If the new input shapes is equal to the previous one do nothing.
Expand Down

0 comments on commit f656461

Please sign in to comment.