Fix input with cell input problem
This commit is contained in:
parent
85ef41529c
commit
39d9dc916f
|
@ -59,6 +59,7 @@ namespace pijit {
|
|||
static const std::set<AObject::Type> kMsSupportedType = {
|
||||
AObject::kTypeInt, AObject::kTypeBool, AObject::kTypeFloat,
|
||||
AObject::kTypeNone, AObject::kTypeString, AObject::kTypeTensor,
|
||||
AObject::kTypeFuncGraphOut,
|
||||
};
|
||||
|
||||
MemPool<AbstractObjectBase> AbstractObjectBase::aobject_mem_pool_(__FILE__, __LINE__, "AObject");
|
||||
|
|
|
@ -379,16 +379,7 @@ void MindGraphAnalyzer::Analyze() {
|
|||
if (!support_ret) {
|
||||
return;
|
||||
}
|
||||
PyCodeObject *co = graph_->GetCodeObj();
|
||||
const FrameStates &enter_frame = graph_->GetFrame(0);
|
||||
const auto &args = enter_frame.GetLocals();
|
||||
int argc = co->co_argcount + co->co_kwonlyargcount;
|
||||
// check all parameters is graph supported, but here not check variable arguments
|
||||
auto end = args.begin() + argc;
|
||||
auto iter = std::find_if(args.begin(), end, [](ValueNode *i) { return !ValidateGraphParameters(i); });
|
||||
if (iter == end) {
|
||||
need_interpret_ = false;
|
||||
}
|
||||
need_interpret_ = false;
|
||||
}
|
||||
|
||||
bool MindGraphAnalyzer::AnalyzeAliveLocals(std::vector<ValueNode *> aliveNodes) {
|
||||
|
|
Loading…
Reference in New Issue