Skip to content

Commit f7853f2

Browse files
committed
Fix a bug
1 parent 70b9e38 commit f7853f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/mxnet/quantization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def _get_optimal_thresholds(nd_dict, num_bins=8001, num_quantized_bins=255, logg
273273
logger.info('Calculating optimal thresholds for quantization using KL divergence'
274274
' with num_bins=%d and num_quantized_bins=%d' % (num_bins, num_quantized_bins))
275275
th_dict = {}
276-
for k, v in nd_dict:
276+
for k, v in nd_dict.items():
277277
min_val, max_val, min_divergence, opt_th = _get_optimal_threshold(v, num_bins=num_bins,
278278
num_quantized_bins=num_quantized_bins)
279279
del v # release the memory of ndarray

0 commit comments

Comments
 (0)