-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TVMScript][Bugfix] Check for StructInfoProxy in R.match_cast
Prior to this commit, bare `StructInfoProxy` annotations could be used to annotate variables (e.g. `var: R.Tensor`). However, they could not be used as the argument of a match cast (e.g. `R.match_cast(obj, R.Tensor)`). This breaks round-trips, as the `R.match_cast` printing generates base `StructInfoProxy` objects. This commit updates TVMScript parsing to handle bare `StructInfoProxy` annotations as an argument to `R.match_cast`.
- Loading branch information
1 parent
69995d1
commit 94ce183
Showing
3 changed files
with
76 additions
and
13 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
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
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