-
Notifications
You must be signed in to change notification settings - Fork 63
Bani / Const Op handling for empty and shorter vector values NGTF-2442 #395
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
Bani / Const Op handling for empty and shorter vector values NGTF-2442 #395
Conversation
test/python/test_const.py
Outdated
| log.debug('Invoking sess.run(zz)') | ||
| return sess.run(zz) | ||
|
|
||
| assert ( |
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.
instead of skipping the test we could assert on error being thrown?
ngraph_bridge/ngraph_utils.h
Outdated
| values->resize(n_elements); | ||
|
|
||
| auto val_lastsaved = 0; | ||
| #define SET_VALS(val_size, val_vec) \ |
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.
can we use a templated function instead?
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.
Restructured the code
|
@shresthamalik please review the latest changes before merging. |
shresthamalik
left a comment
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.
LGTM
vishakha-nervana
left a comment
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.
LGTM
No description provided.