Skip to content

Commit

Permalink
additional guard on datasets import
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Feb 1, 2024
1 parent 70c9305 commit 3c4989d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion optimum/intel/openvino/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@


if is_datasets_available():
from datasets import Dataset
try:
from datasets import Dataset
except ImportError:
pass

COMPRESSION_OPTIONS = {
"int8": {"mode": nncf.CompressWeightsMode.INT8},
Expand Down

0 comments on commit 3c4989d

Please sign in to comment.