-
Notifications
You must be signed in to change notification settings - Fork 24
fix to manage each var is renamed or not #155
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #155 +/- ##
==========================================
+ Coverage 85.29% 85.29% +<.01%
==========================================
Files 22 22
Lines 1122 1129 +7
==========================================
+ Hits 957 963 +6
- Misses 165 166 +1
Continue to review full report at Codecov.
|
ChainerCI, test this please |
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.
Thanks!
onnx_chainer/context.py
Outdated
Arguments: | ||
variable (var): target variable | ||
name (str): name to be exported as ONNX node name | ||
pinned (bool): if don't want to change the name on subsequent |
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.
I feel these sentences are a bit redundant. How about "if True, the name will not be overwritten in subsequence process"?
process, set ``True``. Enable to check the target variable | ||
is pinned or not by using ``is_pinned``. | ||
""" | ||
|
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.
I think it's invalid to call set_name
for pinned names? How about assert str_id not in self.name_list or not self.name_list[str_id][1]
?
ChainerCI, test this please |
fixes #154
before
export with
output_names=['out_tanh', 'out_sigmoid']
, outputs are renamed but interim node output are not renamed, such asv15
after