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

Fix the issue with determining whether operators in control flow are registered. #1485

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

0x3878f
Copy link
Contributor

@0x3878f 0x3878f commented Jan 23, 2025

At the beginning of the export process, it is necessary to check for any unregistered operators. Previously, only the operators in the global block were checked, without verifying whether all operators within control flow were supported, which led to unclear error messages when issues arose during model conversion.
Therefore, a new function void GetAllBlocksOpsSet(pir::Block *block); has been added in class PaddlePirParser to collect all operator pointers in the Program and perform checks at the start of the export process.

Copy link

paddle-bot bot commented Jan 23, 2025

Thanks for your contribution!

Copy link
Collaborator

@risemeup1 risemeup1 left a comment

Choose a reason for hiding this comment

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

LGTM

@risemeup1 risemeup1 merged commit 15ab470 into PaddlePaddle:test_pir Jan 23, 2025
5 checks passed
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.

2 participants