-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Typing][A-40,A-41,A-42] Add type annotations for some optimizers (adamax, adamw, asgd) #65236
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/optimizer/optimizer/*
paddle/optimizer/*
adamax 的 beta1、beta2 支持 Tensor? |
应该不行叭,看 ops.yml 里面 adamax 定义的写的是 float beta1,adam 写的是 scalar beta1 |
示例代码不能跑吗? |
可以~,加上 Tensor 了 |
应该不止这一个?看其他 API 也有这么用的 |
是有一些,有些 docstring 里没有明确写beta1,beta2支持 0d tensor,但是传进去也不报错,adam 里 epsilon 也写可以是 0d tensor,别的地方 docstring 也没明确写支持,但是也可以传😂 |
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.
paddle/optimizer/*
…amax, adamw, asgd) (PaddlePaddle#65236)
PR Category
User Experience
PR Types
Improvements
Description
类型标注:
Related links
@SigureMo @megemini