Skip to content

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