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.384-387 #6119

Merged
merged 1 commit into from
Aug 25, 2023
Merged

映射文档 No.384-387 #6119

merged 1 commit into from
Aug 25, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Aug 23, 2023

PaddlePaddle/PaConvert#112

384 torch.nn.Module.register_parameter
385 torch.nn.Module.get_submodule 替换为属性
386 torch.nn.Module.get_parameter 替换为属性
387 torch.nn.Module.get_buffer 替换为属性


```python
# Pytorch 写法
module.get_buffer(target)
Copy link
Collaborator

Choose a reason for hiding this comment

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

示例中target写成一个字符串吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

1

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit 09e2032 into PaddlePaddle:develop Aug 25, 2023
2 checks passed
@co63oc co63oc deleted the api387 branch September 7, 2023 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants