You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…achinelearning#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 webmachinelearning#502 already tracked correcting it, so
let's simplify - just change the logic for "is a scalar?" and drop the
bogus assert.
* 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 <dwayner@microsoft.com>
In MLGraphBuilder's input() method steps:
This doesn't appear to be an assertion, rather it seems to be describing (non-normatively) how to interpret the descriptor.
Convert this to a note?
The text was updated successfully, but these errors were encountered: