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

[Fixbug] Fix bug in IR Printer #123

Merged
merged 1 commit into from Feb 27, 2023
Merged

[Fixbug] Fix bug in IR Printer #123

merged 1 commit into from Feb 27, 2023

Conversation

hjjq
Copy link
Member

@hjjq hjjq commented Feb 27, 2023

Following #122 , When evaluating Expr as a boolean in Python, an error will be thrown.
The error will be triggered by the IR Printer when it is visiting a return statement. It intends to check if the Expr object is None but triggers __bool__ in Expr.
This bug can be reproduced with hidet.option.save_lower_ir(True)

@hjjq hjjq merged commit d9d6ebc into hidet-org:main Feb 27, 2023
@hjjq hjjq deleted the fix-printer branch February 27, 2023 22:10
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

1 participant