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.307/372 #6120

Merged
merged 2 commits into from
Aug 28, 2023
Merged

映射文档 No.307/372 #6120

merged 2 commits into from
Aug 28, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Aug 23, 2023

PaddlePaddle/PaConvert#112

307 torch.autocast
372 torch.cpu.amp.autocast

| - | custom_white_list | 自定义算子白名单,PyTorch 无此参数,Paddle 保持默认即可。 |
| - | custom_black_list | 自定义算子黑名单,PyTorch 无此参数,Paddle 保持默认即可。 |
| - | level | 混合精度训练模式,PyTorch 无此参数,Paddle 保持默认即可。 |
| - | use_promote | 当一个算子存在 float32 类型的输入时,按照 Promote to the Widest 原则,选择 float32 数据类型进行计算。仅在 AMP-O2 训练时可配置。默认为 True。,PyTorch 无此参数,Paddle 保持默认即可。 |
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
Contributor Author

Choose a reason for hiding this comment

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

已修改


| PyTorch | PaddlePaddle | 备注 |
| ------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| device_type | - | 设备类型,Paddle 无此参数,暂无转写方式。 |
Copy link
Collaborator

@zhwesky2010 zhwesky2010 Aug 25, 2023

Choose a reason for hiding this comment

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

这个参数就删除吧,因为paddle不分设备,只有一个 paddle.amp.auto_cast

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

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 173e7a5 into PaddlePaddle:develop Aug 28, 2023
1 check passed
@co63oc co63oc deleted the api372 branch August 30, 2023 23: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.

3 participants