!23018 Remove broaden args in specialize

Merge pull request !23018 from chenfei_mindspore/rm_broad_args_in_specialize
This commit is contained in:
i-robot 2021-09-07 13:29:09 +00:00 committed by Gitee
commit 7c508f98cc
2 changed files with 0 additions and 3 deletions

View File

@ -212,8 +212,6 @@ class BaseFuncGraphEvaluator : public Evaluator {
virtual FuncGraphPtr GetFuncGraph(AnalysisEnginePtr engine, const AbstractBasePtrList &args_spec_list) = 0;
AnalysisContextPtr MakeContext(const AnalysisEnginePtr &engine, const AbstractBasePtrList &args_spec_list);
AnalysisContextPtr parent_context() const { return parent_context_; }
void set_parent_context(const AnalysisContextPtr &parent_context) { parent_context_ = parent_context; }

View File

@ -520,7 +520,6 @@ AnalysisContextPtr FuncGraphSpecializer::MakeContext(const AnalysisEnginePtr &en
const BaseFuncGraphEvaluatorPtr &evaluator,
const AbstractBasePtrList &args_spec_list) {
AbstractBasePtrList normalized_args_spec_list = evaluator->NormalizeArgs(args_spec_list);
normalized_args_spec_list = evaluator->BroadenUndeterminedArgs(normalized_args_spec_list);
FuncGraphPtr fg = evaluator->GetFuncGraph(engine, normalized_args_spec_list);
MS_EXCEPTION_IF_NULL(evaluator->parent_context());
AnalysisContextPtr new_context = evaluator->parent_context()->NewContext(fg, normalized_args_spec_list);