forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TIR] Improved error message if tir.Schedule passed to lower/build (a…
…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`.
- Loading branch information
1 parent
ecb03f6
commit ac36cfe
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters