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

[Infer Symbolic Shape No.26][BUAA]dropout #67412

Merged
merged 5 commits into from
Aug 15, 2024

Conversation

MufanColin
Copy link
Contributor

PR Category

CINN

PR Types

Others

Description

添加 dropout 算子的符号推导接口实现。本地测试时发现 test_dropout_op 文件中无论是否添加 check_symbol_infer=False,都会导致报错,如下图所示。导师说有可能是单测被禁的缘故。

Screenshot 2024-08-14 at 11 13 12
Screenshot 2024-08-14 at 11 13 49

Copy link

paddle-bot bot commented Aug 14, 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.

@luotao1 luotao1 added contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 labels Aug 14, 2024
Comment on lines +374 to +376

infer_context->SetShapeOrDataForValue(op->result(0), x_shape_or_data);

Copy link
Contributor

Choose a reason for hiding this comment

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

这里虽然不会有data但是最好还是过滤掉,可以下个PR顺带改改

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的,我在下一个 PR 中修改掉。

Copy link
Contributor

Choose a reason for hiding this comment

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

好的,我在下一个 PR 中修改掉。

留一下修改PR

@luotao1 luotao1 merged commit 288c616 into PaddlePaddle:develop Aug 15, 2024
28 checks passed
@gongshaotian
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants