提交 3bd0204f 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!5103 fix wrong value of int-type Node bug in pynative

Merge pull request !5103 from liangzelang/fix-repeat-key
......@@ -772,7 +772,9 @@ std::string PynativeExecutor::GetCellId(const py::object &cell, const py::args &
if (node_abs_map_.find(arg_id) != node_abs_map_.end()) {
cell_id += node_abs_map_[arg_id]->ToString();
} else {
AbstractBasePtr abs = abstract::FromValueInside(PyAttrValue(args[i]), true);
auto abs = PyAttrValue(args[i])->ToAbstract();
auto config = abstract::AbstractBase::kBroadenTensorOnly;
abs = abs->Broaden(config);
cell_id += abs->ToString();
node_abs_map_[arg_id] = abs;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部