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

[TIR] Improved error message if tir.Schedule passed to lower/build #11913

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

Lunderberg
Copy link
Contributor

Previously, if a TIR Schedule is passed to tvm.lower, the error message is returned ValueError: ('Expected input to be an IRModule, PrimFunc or Schedule, but got, ', <class 'tvm.tir.schedule.schedule.Schedule'>). This can cause user confusion, as the expected class name in the error message does not differentiate between between a tvm.te.Schedule and a tvm.tir.Schedule. Updated error message to explicitly state that this should be a te.Schedule.

Previously, if a TIR Schedule is passed to `tvm.lower`, the error
message is returned `ValueError: ('Expected input to be an IRModule,
PrimFunc or Schedule, but got, ', <class
'tvm.tir.schedule.schedule.Schedule'>)`.  This can cause user
confusion, as the expected class name in the error message does not
differentiate between between a `tvm.te.Schedule` and a
`tvm.tir.Schedule`.  Updated error message to explicitly state that
this should be a `te.Schedule`.
@driazati
Copy link
Member

@tvm-bot rerun

@junrushao junrushao merged commit 45568c9 into apache:main Jun 27, 2022
@junrushao
Copy link
Member

Thanks @Lunderberg!!

@Lunderberg Lunderberg deleted the lower_stir_schedule_error_message branch June 27, 2022 19:44
blackkker pushed a commit to blackkker/tvm that referenced this pull request Jul 7, 2022
…pache#11913)

Previously, if a TIR Schedule is passed to `tvm.lower`, the error
message is returned `ValueError: ('Expected input to be an IRModule,
PrimFunc or Schedule, but got, ', <class
'tvm.tir.schedule.schedule.Schedule'>)`.  This can cause user
confusion, as the expected class name in the error message does not
differentiate between between a `tvm.te.Schedule` and a
`tvm.tir.Schedule`.  Updated error message to explicitly state that
this should be a `te.Schedule`.
mikeseven pushed a commit to mikeseven/tvm that referenced this pull request Sep 27, 2023
…pache#11913)

Previously, if a TIR Schedule is passed to `tvm.lower`, the error
message is returned `ValueError: ('Expected input to be an IRModule,
PrimFunc or Schedule, but got, ', <class
'tvm.tir.schedule.schedule.Schedule'>)`.  This can cause user
confusion, as the expected class name in the error message does not
differentiate between between a `tvm.te.Schedule` and a
`tvm.tir.Schedule`.  Updated error message to explicitly state that
this should be a `te.Schedule`.
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.

3 participants