Closed Aurelius84 closed 2 weeks ago
CINN
Bug fixes
Pcard-67164
从日志上来看,如下行出来的group_ops里的指针是悬空的:
auto group_ops = std::unordered_set<pir::Operation*>( group_op.GetOperators().begin(), group_op.GetOperators().end());
group_op.GetOperators()返回的是一个临时对象,而非引用。两次调用,返回了两个临时对象,基于迭代器构造unordered_set不是同一个对象的begin和end。
你的PR提交成功,感谢你对开源项目的贡献! 请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。 Your PR has been submitted. Thanks for your contribution! Please wait for the result of CI firstly. See Paddle CI Manual for details.
PR Category
CINN
PR Types
Bug fixes
Description
Pcard-67164
从日志上来看,如下行出来的group_ops里的指针是悬空的:
group_op.GetOperators()返回的是一个临时对象,而非引用。两次调用,返回了两个临时对象,基于迭代器构造unordered_set不是同一个对象的begin和end。