-
Notifications
You must be signed in to change notification settings - Fork 5.9k
move some fluid apis #55986
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
move some fluid apis #55986
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
3b45a63 to
f4222ef
Compare
python/paddle/fluid/layers/nn.py
Outdated
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.
这个文件没内容了,直接删掉
python/paddle/__init__.py
Outdated
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.
探索下解决方案,不能直接删除现有公开API
python/paddle/optimizer/lr.py
Outdated
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.
这几个新增过来的不属于公开API,不在__all__列表里添加
27be22c to
b7d6e27
Compare
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
b149f6a to
41b2e3e
Compare
41b2e3e to
bfc390c
Compare
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
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
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.
自查一下吧,是否迁移后的代码示例还存在使用 fluid 的情况
| paddle.enable_static() | ||
| base_lr = 0.1 | ||
| sgd_optimizer = fluid.optimizer.SGD( |
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.
诸如此类,迁移后的代码,使用的还是 fluid 路径,请修改一下~
| .. code-block:: python | ||
| import paddle.fluid as fluid |
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.
import fluid 是一定需要的吗?
| Examples: | ||
| .. code-block:: python | ||
| import paddle.fluid as fluid |
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.
同上,出现fluid,请修改
| Examples: | ||
| .. code-block:: python | ||
| import paddle.fluid as fluid |
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.
同上,出现fluid,请修改
| .. code-block:: python | ||
| import paddle.fluid as fluid |
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.
同上,出现fluid,请修改
收到 |
PR types
Others
PR changes
APIs
Description
非底层概念的公开API迁移到2.0