fix min_quant_weight_size_ bug

This commit is contained in:
yeyunpeng2020 2022-05-16 15:28:22 +08:00
parent 6d7185e59b
commit 95eb69d68a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}