Skip to content

Commit 4ffe687

Browse files
committed
fix self._model check
1 parent 534a364 commit 4ffe687

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tools/accuracy_checker/openvino/tools/accuracy_checker/launcher/dlsdk_launcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,10 +931,10 @@ def _set_preprocess(self, preprocess):
931931
self.disable_resize_to_input = preprocess.ie_processor.has_resize()
932932

933933
def get_model_file_type(self):
934-
if self._delayed_model_loading:
935-
return None
936-
else:
934+
if hasattr(self, '_model'):
937935
return self._model.suffix
936+
else:
937+
return None
938938

939939
def input_shape(self, input_name):
940940
if input_name in self._partial_shapes:

tools/accuracy_checker/openvino/tools/accuracy_checker/launcher/openvino_launcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,10 +967,10 @@ def _set_preprocess(self, preprocess):
967967
self.disable_resize_to_input = preprocess.ie_processor.has_resize()
968968

969969
def get_model_file_type(self):
970-
if self._delayed_model_loading:
971-
return None
972-
else:
970+
if hasattr(self, '_model'):
973971
return self._model.suffix
972+
else:
973+
return None
974974

975975
def get_infer_queue(self, log=True):
976976
if self.config.get('num_requests', 'AUTO') == 'AUTO':

0 commit comments

Comments
 (0)