Skip to content

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

Merged
merged 2 commits into from
Apr 23, 2019

Conversation

disktnk
Copy link
Member

@disktnk disktnk commented Apr 22, 2019

fixes #154

before

image

export with output_names=['out_tanh', 'out_sigmoid'], outputs are renamed but interim node output are not renamed, such as v15

after

image

@disktnk disktnk added this to the 1.4.1 milestone Apr 22, 2019
@codecov-io
Copy link

codecov-io commented Apr 22, 2019

Codecov Report

Merging #155 into master will increase coverage by <.01%.
The diff coverage is 95.23%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
onnx_chainer/export.py 92.54% <100%> (+0.02%) ⬆️
onnx_chainer/context.py 96.29% <90%> (-3.71%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18d9330...ceb31d4. Read the comment docs.

@disktnk
Copy link
Member Author

disktnk commented Apr 22, 2019

ChainerCI, test this please

@pfn-ci-bot
Copy link
Collaborator

Successfully created a job for commit 2c5dd76 (6f15d9d):

Copy link
Member

@shinh shinh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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
Copy link
Member

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``.
"""

Copy link
Member

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]?

@disktnk
Copy link
Member Author

disktnk commented Apr 23, 2019

ChainerCI, test this please

@pfn-ci-bot
Copy link
Collaborator

Successfully created a job for commit ceb31d4 (e5cf8e9):

@disktnk disktnk merged commit ab0cb9a into chainer:master Apr 23, 2019
@disktnk disktnk deleted the fix/non-replace-output branch April 23, 2019 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Names of interim nodes are not changed with output name option
4 participants