Skip to content

Conversation

@SigureMo
Copy link
Member

PR types

Others

PR changes

Others

Description

清理 AST 动转静下 StaticAnalysiscreate_fill_constant_node 代码和对应的单测

PCard-66972

@paddle-bot
Copy link

paddle-bot bot commented Jan 16, 2024

你的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

@DrRyanHuang DrRyanHuang left a comment

Choose a reason for hiding this comment

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

https://github.com/cattidea/Paddle/blob/2432e49ce12209d979abebb99299efdcd262bf27/test/dygraph_to_static/test_tensor_hook.py#L133-L168
这段注释掉的代码,是否需要添加一个TODO:

TODO: 目前动转静暂不支持动态图下对 Tensor 调用 register_hook 

@SigureMo
Copy link
Member Author

这段注释掉的代码,是否需要添加一个TODO:

这个 TODO 你是咋知道的?而且看这个 case 好像也不是在动态图调用?

@DrRyanHuang
Copy link
Contributor

https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/jit/limitations_cn.html#tensorhook

应该是因为这个,把那个代码段注释掉的?

@SigureMo
Copy link
Member Author

应该是因为这个,把那个代码段注释掉的?

这是在那之前写的吧,就是因为没支持所以当时发了个任务支持的

@SigureMo

This comment was marked as outdated.

Copy link
Contributor

@XieYunshen XieYunshen left a comment

Choose a reason for hiding this comment

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

LGTM
单测清理

@SigureMo SigureMo merged commit 75b5f64 into PaddlePaddle:develop Jan 17, 2024
@SigureMo SigureMo deleted the dy2st/cleanup-unused-static-analysis branch January 17, 2024 10:02
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.

4 participants