Skip to content

Commit

Permalink
ENABLE_MMAP property pos (openvinotoolkit#17896)
Browse files Browse the repository at this point in the history
(cherry picked from commit 29f0669)
  • Loading branch information
KodiaqQ committed Jun 16, 2023
1 parent 7eb5952 commit c76a010
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/pot/openvino/tools/pot/engines/ie_engine.py
Expand Up @@ -28,6 +28,7 @@ class IEEngine(Engine):
def __init__(self, config, data_loader=None, metric=None):
super().__init__(config, data_loader, metric)
self._ie = Core()
self._ie.set_property({"ENABLE_MMAP": "NO"})
self._model = None
self._nx_model = None
self._output_layers = None
Expand Down
1 change: 1 addition & 0 deletions tools/pot/openvino/tools/pot/graph/graph_utils.py
Expand Up @@ -18,6 +18,7 @@

init_logger('ERROR', False)
core = Core()
core.set_property({"ENABLE_MMAP": "NO"})
pass_manager = Manager()


Expand Down
1 change: 1 addition & 0 deletions tools/pot/openvino/tools/pot/utils/launcher.py
Expand Up @@ -23,6 +23,7 @@ def __init__(self, device='CPU'):
self.infer_request = None

self._ie = Core()
self._ie.set_property({"ENABLE_MMAP": "NO"})

def set_model(self, model, output_names=None, md_shapes=None):
""" Set/reset model to instance of engine class
Expand Down

0 comments on commit c76a010

Please sign in to comment.