Skip to content
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

映射文档 No. 1 #5699

Merged
merged 11 commits into from
Mar 21, 2023
Merged

映射文档 No. 1 #5699

merged 11 commits into from
Mar 21, 2023

Conversation

DrRyanHuang
Copy link
Member

@paddle-bot
Copy link

paddle-bot bot commented Mar 10, 2023

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5699.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

Copy link
Collaborator

@Skylark-hjyp Skylark-hjyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Skylark-hjyp
Copy link
Collaborator

这个和 No.2 都需要修一下CI,参照官网安装pre-commit,进行格式检查~ https://www.paddlepaddle.org.cn/documentation/docs/zh/dev_guides/code_contributing_path_cn.html

@DrRyanHuang
Copy link
Member Author

@Tomoko-hjf

我之前本地pre-commit检查过了,CI rerun了好几次,每次都是

2023-03-15 13:08:46 Check the log at /root/.cache/pre-commit/pre-commit.log
2023-03-15 13:08:46 + git diff
2023-03-15 13:08:47 + commit_files=off
2023-03-15 13:08:47 + echo 'Please check the code style of docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.grid_sample.md'
2023-03-15 13:08:47 Please check the code style of docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.grid_sample.md
2023-03-15 13:08:47 + for file_name in `git diff --numstat upstream/$BRANCH| awk '{print $NF}'`
2023-03-15 13:08:47 + pre-commit run --files ../docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.nll_loss.md
2023-03-15 13:08:47 [INFO] Initializing environment for https://github.com/psf/black.git.
2023-03-15 13:08:47 An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'fetch', 'origin', '--tags')
2023-03-15 13:08:47 return code: 128
2023-03-15 13:08:47 expected return code: 0
2023-03-15 13:08:47 stdout: (none)
2023-03-15 13:08:47 stderr:
2023-03-15 13:08:47     fatal: unable to access 'https://github.com/psf/black.git/': Received HTTP code 503 from proxy after CONNECT

看样子是CI服务器代理有问题? 都是 fatal: unable to access 'https://github.com/psf/black.git/': Received HTTP code 503 from proxy after CONNECT

@Skylark-hjyp
Copy link
Collaborator

可以把本地 pre-commit 删掉重新安装一下试试吗,因为我们测试了一下,如果本地 pre-commit 过了的话,CI 也能过
image

@DrRyanHuang
Copy link
Member Author

@Tomoko-hjf 刚才rerun 了一下,OK了

@zade23 zade23 mentioned this pull request Mar 20, 2023
| size_average | - | 已弃用 |
| reduce | - | 已弃用 |
| reduction | reduction | 表示应用于输出结果的规约方式,可选值有:'none', 'mean', 'sum' |
| beta | delta | SmoothL1Loss 损失的阈值参数 |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后面写的时候需要在 参数用法不一致 的参数。介绍后面加一句:需要进行转写。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants