This repository has been archived by the owner on May 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Op] Remove MatchCast requirement for manipulation ops (#436)
Prior to this PR, the structure info inference of some manipulation operators rejects unknown ndim or unknown shape for safety reason. As many people are pointing out, this requirement increases the overhead of our frontend importers, in the way of forcing the importers to use MatchCast, which turns out to be ineffective and troublesome. Therefore, this PR removes such requirements, turning into the behavior of optimistically trust the input that they have the desired ndim or shape when those properties are unknown. Nevertheless, this PR leaves TODO items at such places, which serve as reminders for us to support corresponding runtime ndim or shape check in the future.
- Loading branch information
1 parent
69a9700
commit ce5c7f4
Showing
2 changed files
with
76 additions
and
103 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