-
Notifications
You must be signed in to change notification settings - Fork 204
【PPSCI Doc No.23、25-29、31-34、97】 #840
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
Conversation
Thanks for your contribution! |
ppsci/arch/afno.py
Outdated
@@ -413,7 +413,12 @@ class AFNONet(base.Arch): | |||
|
|||
Examples: | |||
>>> import ppsci | |||
>>> model = ppsci.arch.AFNONet(("input", ), ("output", )) | |||
>>> model = ppsci.arch.AFNONet(("input", ), ("output", ), img_size=(180, 360)) |
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.
建议img_size修改为常用大小 720,1440
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.
Done.
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.
感谢提交PR,分布式的测试可以加上跳过代码,顺便合一下最新develop分支
ppsci/utils/misc.py
Outdated
>>> import paddle | ||
>>> import ppsci | ||
>>> import paddle.distributed as dist | ||
>>> dist.init_parallel_env() |
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.
末尾加上: # doctest: +SKIP
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.
All Done.
ppsci/utils/misc.py
Outdated
>>> import ppsci | ||
>>> import paddle.distributed as dist | ||
>>> dist.init_parallel_env() | ||
>>> if dist.get_rank() == 0: |
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.
末尾加上 # doctest: +SKIP
ppsci/utils/misc.py
Outdated
... data = paddle.to_tensor([[1, 2, 3], [4, 5, 6]]) | ||
... else: | ||
... data = paddle.to_tensor([[7, 8, 9], [10, 11, 12]]) | ||
>>> result = ppsci.utils.misc.all_gather(data) |
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.
末尾加上 # doctest: +SKIP
ppsci/utils/misc.py
Outdated
... else: | ||
... data = paddle.to_tensor([[7, 8, 9], [10, 11, 12]]) | ||
>>> result = ppsci.utils.misc.all_gather(data) | ||
>>> print(result.numpy()) |
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.
末尾加上 # doctest: +SKIP
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
* ppsci.equation.PDE.parameters/state_dict/set_state_dict api fix * ppsci.equation.PDE.parameters/state_dict/set_state_dict api fix * fix api docs in the timedomain * fix api docs of timedomain * fix api docs of timedomain * ppsci api docs fixed * ppsci api docs fixed * ppsci api docs fixed --------- Co-authored-by: krp <2934631798@qq.com> Co-authored-by: HydrogenSulfate <490868991@qq.com>
PR types
Others
PR changes
Docs
Describe
补全 #686 中的23、25-29、31-34、97 api的文档
其中,第32 ppsci.autodiff.Jacobians.call 没看出来有问题。
97 代码示例单独测试没问题 doctest有问题