Skip to content

Commit 2d5201a

Browse files
Fix
1 parent ee65304 commit 2d5201a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimum/intel/openvino/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def __init__(
895895
# Pull dataset-related parameters from child configs. This is not the intended use case, but we process it just
896896
# in case user sets those parameters inside child configs only.
897897
wqc, aqc = self.weight_quantization_config, self.activation_quantization_config
898-
num_samples = max(num_samples or 0, max(wqc.num_samples, aqc.num_samples))
898+
num_samples = max(num_samples or 0, max(wqc.num_samples or 0, aqc.num_samples))
899899
dataset = dataset or wqc.dataset or aqc.dataset
900900
tokenizer = tokenizer or wqc.tokenizer or aqc.tokenizer
901901
processor = processor or wqc.processor or aqc.processor

0 commit comments

Comments
 (0)