-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix: Fix MLGraphBuilder.input()'s handling of scalars (#575)
* Bug fix: Fix MLGraphBuilder.input()'s handling of scalars. Fixes #502 MLOperandDescriptor was updated in c320472 to always have dimensions, defaulted to an empty list for scalars. That makes the current prose for input() incorrect. Issue #502 already tracked correcting it, so let's simplify - just change the logic for "is a scalar?" and drop the bogus assert. * Remove conditional and fix check dimensions to allow 0 * Factor byte length check into checking dimensions * Oops, this should go too. * type -> dataType * (1) simplify (2) move into MLOperandDescriptor (3) link to #456 * Restore dimension check and reorder byte length to last * Fix build for missing dimensions --------- Co-authored-by: Dwayne Robinson <[email protected]>
- Loading branch information
1 parent
4ad9a63
commit 6e99b01
Showing
1 changed file
with
21 additions
and
19 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