Skip to content

Commit 1426765

Browse files
Remove using nncf.torch.patch_torch_operators (#1555)
1 parent b6d5ab6 commit 1426765

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

optimum/intel/openvino/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,13 @@
5353

5454

5555
if is_nncf_available():
56-
logging.disable(logging.INFO)
5756
import nncf
5857

5958
if is_nncf_version("<", "2.19"):
6059
raise ImportError(
6160
"NNCF version 2.19 or higher is required to use NNCF-based quantization. "
6261
f"Please upgrade your NNCF installation. The current version of NNCF is {nncf.__version__}."
6362
)
64-
65-
logging.disable(logging.NOTSET)
66-
67-
# Suppress version mismatch logging
68-
nncf.set_log_level(logging.ERROR)
69-
from nncf.torch import patch_torch_operators
70-
71-
nncf.set_log_level(logging.INFO)
72-
73-
patch_torch_operators()
74-
7563
from .quantization import OVCalibrationDataset, OVQuantizer
7664

7765

0 commit comments

Comments
 (0)