-
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.
Enable empty list of values as attribute (#5559)
This PR makes two fixes: * The existing checker does not allow an attribute to have an empty list (of ints, or floats, or strings, etc.) as a value. The PR removes this check. It is better for op-specific checks to check for this where required. * There are similar checks in the shape-inference method of the Constant op, which are also removed. This allows a Constant op to construct an empty 1D tensor of ints or floats, for example, conveniently. --------- Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
- Loading branch information
1 parent
108fa8d
commit d14f721
Showing
6 changed files
with
164 additions
and
358 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
Oops, something went wrong.