Skip to content

Stop emitting batch_size for Linear with no bias #109

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 1 commit into from
Feb 26, 2019

Conversation

shinh
Copy link
Member

@shinh shinh commented Feb 26, 2019

Though the original code would be conformant to the ONNX
standard, it would be better not to have batch_size in zero
bias for Gemm because

  • users may be able to change batch_size after ONNX generation
  • generated ONNX will be slightly smaller

#103

Though the original code would be conformant to the ONNX
standard, it would be better not to have batch_size in zero
bias for Gemm because

- users may be able to change batch_size after ONNX generation
- generated ONNX will be slightly smaller

chainer#103
Copy link
Member

@disktnk disktnk left a comment

Choose a reason for hiding this comment

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

I totally agree with your comments, thx. Could you add nobias=False test case?

@disktnk disktnk added this to the 1.3.3 milestone Feb 26, 2019
@shinh
Copy link
Member Author

shinh commented Feb 26, 2019

Isn't this case already covering the nobias=False case? https://github.com/chainer/onnx-chainer/blob/master/tests/functions_tests/test_connections.py#L61

@disktnk
Copy link
Member

disktnk commented Feb 26, 2019

Oh, sorry I missed.

@disktnk disktnk merged commit 329953d into chainer:master Feb 26, 2019
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.

2 participants