Skip to content
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

Use F.matmul instead of F.batch_matmul #141

Merged
merged 6 commits into from Oct 19, 2017
Merged

Conversation

toslunar
Copy link
Member

batch_matmul is going to be unavailable in Chainer v3, or would be deprecated even if chainer/chainer#3016 is merged.

@toslunar
Copy link
Member Author

Oops, the PR depends on the new F.matmul in v3.

@muupan
Copy link
Member

muupan commented Aug 29, 2017

I think It is better to support both v2 and v3 for now by checking the version of chainer and use F.numpy_like_matmul for v2.

@coveralls
Copy link

coveralls commented Aug 31, 2017

Coverage Status

Coverage increased (+0.01%) to 71.537% when pulling 5138b73 on toslunar:use-matmul into afa7583 on chainer:master.

@coveralls
Copy link

coveralls commented Sep 1, 2017

Coverage Status

Coverage increased (+0.1%) to 71.665% when pulling fb22da8 on toslunar:use-matmul into afa7583 on chainer:master.

@muupan
Copy link
Member

muupan commented Oct 17, 2017

Can you merge the current master to this PR so that CI runs with both Chainer v2 and v3?

pkg_resources.get_distribution("chainer").version)

if chainer_version < StrictVersion('3.0.0a1'):
def matmul_v3(a, b, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a docstring to explain why this is needed?

@toslunar
Copy link
Member Author

Rebased to the current master

@coveralls
Copy link

coveralls commented Oct 17, 2017

Coverage Status

Coverage decreased (-0.04%) to 71.665% when pulling 25849f3 on toslunar:use-matmul into e84ea5f on chainer:master.

@coveralls
Copy link

coveralls commented Oct 17, 2017

Coverage Status

Coverage decreased (-0.04%) to 71.665% when pulling 25849f3 on toslunar:use-matmul into e84ea5f on chainer:master.

@coveralls
Copy link

coveralls commented Oct 18, 2017

Coverage Status

Coverage increased (+0.04%) to 71.744% when pulling 2f8b887 on toslunar:use-matmul into e84ea5f on chainer:master.

@muupan
Copy link
Member

muupan commented Oct 19, 2017

LGTM

@muupan muupan merged commit 52d2af6 into chainer:master Oct 19, 2017
@toslunar toslunar deleted the use-matmul branch October 19, 2017 04:54
@muupan muupan added this to the v0.3 milestone Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants