diff --git a/mindspore/lite/tools/converter/quantizer/weight_quantizer.cc b/mindspore/lite/tools/converter/quantizer/weight_quantizer.cc index 68706d6df5..1b1902c29d 100644 --- a/mindspore/lite/tools/converter/quantizer/weight_quantizer.cc +++ b/mindspore/lite/tools/converter/quantizer/weight_quantizer.cc @@ -672,7 +672,7 @@ STATUS WeightQuantizer::DoMixedQuant(FuncGraphPtr func_graph) { STATUS WeightQuantizer::DoFixedQuant(FuncGraphPtr func_graph) { MS_ASSERT(func_graph != nullptr); for (auto &cnode : func_graph->GetOrderedCnodes()) { - auto primitive = GetValueNode(cnode->input(0)); + auto primitive = GetValueNode>(cnode->input(0)); if (primitive == nullptr) { MS_LOG(DEBUG) << cnode->fullname_with_scope() << " : primitive is nullptr"; continue;