forked from mindspore-Ecosystem/mindspore
fix min_quant_weight_size_ bug
This commit is contained in:
parent
6d7185e59b
commit
95eb69d68a
|
@ -62,7 +62,7 @@ bool QuantStrategy::CanTensorQuantized(const CNodePtr &cnode, const AnfNodePtr &
|
|||
MS_LOG(ERROR) << "Get element num from shape failed.";
|
||||
return ret;
|
||||
}
|
||||
if (total_shape_size < 0 || static_cast<size_t>(total_shape_size) < min_quant_weight_size_) {
|
||||
if (total_shape_size < 0 || static_cast<size_t>(total_shape_size) <= min_quant_weight_size_) {
|
||||
MS_LOG(INFO) << "shape_size " << total_shape_size << " less min_quant_weight_size_ " << min_quant_weight_size_;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue