-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ONNXRuntime] fix naming #1608
[ONNXRuntime] fix naming #1608
Conversation
OrtNDArray ortNDArray = sub.from(inputs.get(i)); | ||
container.put(inputNames.get(i), ortNDArray.getTensor()); | ||
// If input data has name | ||
if (inputs.get(0).getName() != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not assume all input has name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User should either provide all names to the NDArray or provides no name
Codecov Report
@@ Coverage Diff @@
## master #1608 +/- ##
============================================
- Coverage 72.08% 70.81% -1.28%
- Complexity 5126 5399 +273
============================================
Files 473 504 +31
Lines 21970 23631 +1661
Branches 2351 2573 +222
============================================
+ Hits 15838 16734 +896
- Misses 4925 5614 +689
- Partials 1207 1283 +76
Continue to review full report at Codecov.
|
Change-Id: I94a580dc81c0229d8ccf6870a416d8d7bdff30aa
Description
Fixed the bug on the name where user has placed name inside.