-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【Hackathon No.89】 Remove circle import Part5 #51881
【Hackathon No.89】 Remove circle import Part5 #51881
Conversation
@Aurelius84 见python/paddle/jit/dy2static/utils_helper.py L70,该底层逻辑引用了自身import paddle.jit.dy2static as _jst # noqa: F401 用作引用判断。此处可能不易于解耦。 |
python/paddle/jit/dy2static/utils.py
Outdated
@@ -31,6 +31,7 @@ | |||
import numpy as np | |||
|
|||
import paddle | |||
import paddle.fluid as fluid # noqa: F401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utils 用到的只有fluid.dygraph.Layer,是在一个eval里,所以这里需要加F401,但这个import语句是不是可以删掉?我看399行已经改为了paddle.nn.Layer了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果后续还有part6的PR,也可以放到下个PR里修改。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果后续还有part6的PR,也可以放到下个PR里修改。
收到~ 该问题在下个pr中解决~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
和 @Aurelius84 沟通确认:No.89 任务已完成 |
PR types
Others
PR changes
Others
Describe
Details
本PR修复了部分显而易见的循环引用问题。