-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize input/output number check in shape inference (#6005)
### Description - Add `OpSchema::VerifyInputNum` and `OpSchema::VerifyOutputNum` methods. The logic has been moved from `OpSchema::Verify`. - Replaced the input/output number check logic in `OpSchema::CheckInputOutputType` with calls to the new interfaces. - Without using the `Node(domain::op_type::version)` string pattern in `OpSchema::CheckInputOutputType` when calling `fail_check`, as the `op_type` will be displayed by the shape inference common exception. Otherwise, it would appear redundant. ### Motivation and Context follow-up #5990 resolve #5993 --------- Signed-off-by: opluss <opluss@qq.com>
- Loading branch information
Showing
2 changed files
with
75 additions
and
59 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