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

[Dy2Static] Support TypeHint for function decorated by @to_static #47121

Merged
merged 2 commits into from Oct 19, 2022

Conversation

2742195759
Copy link
Contributor

PR types

Function optimization

PR changes

Others

Describe

Add Typehint Transformer and remove custom typehint in user code to prevent undefined name.

@paddle-bot
Copy link

paddle-bot bot commented Oct 18, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@Aurelius84 Aurelius84 changed the title [Dy2Static] remove typehint [Dy2Static] Support TypeHint for function decorated by @to_static Oct 19, 2022
@Aurelius84 Aurelius84 merged commit 0ad7f53 into PaddlePaddle:develop Oct 19, 2022
2742195759 added a commit to 2742195759/Paddle that referenced this pull request Oct 19, 2022
…ddlePaddle#47121)

* Add TypeHint Transformer

* add unittest for typehint transformer
XiaoguangHu01 pushed a commit that referenced this pull request Oct 19, 2022
…47147)

* [Dy2Static] Support TypeHint for function decorated by @to_static (#47121)

* Add TypeHint Transformer

* add unittest for typehint transformer

* [Dy2Static] Remove GradTransformer (#47063)

* [Dy2Static] Remove GradTransformer
1. fix einsum infershape bugs.
2. remove grad_transformer and unify paddle.grad and paddle.static.gradient.
3. add dygraph_and_dy2static_only decorator for dy2static.

* fix bugs

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

Successfully merging this pull request may close these issues.

None yet

3 participants