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

Skip some Convolution2D tests for older numpy versions #8458

Merged
merged 1 commit into from
Nov 23, 2019

Conversation

emcastillo
Copy link
Member

Closes #7946

The reason behind the flakiness is the use of a numpy version < 1.17
1.17 fixed a bug in the float16 implementation.

What happens is that forward_expected is comparing all the backends against the cpu implementation using numpy. And when using CUDA the results in float16 might sightly differ in some corner cases dut to the cpu-gpu difference (numpy bug) in fp16 implementation. Other tests that rely on numpy for forward_expected are most likely to be affected by this.

This failure only happens with grouped convolutions.

@niboshi
Copy link
Member

niboshi commented Nov 19, 2019

I suggest avoid skipping but instead omit numerical checks (#7946 (comment)).
Calculations should be successfully performed even with older numpy versions.

@emcastillo
Copy link
Member Author

Comment addressed, thanks a lot for the feedback.

Copy link
Member

@takagi takagi left a comment

Choose a reason for hiding this comment

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

Would you leave notes to refer the discussion?

@takagi
Copy link
Member

takagi commented Nov 21, 2019

pfnCI, test this please.

@chainer-ci
Copy link
Member

Jenkins CI test (for commit 2bf1b9e, target branch master) succeeded!

@takagi takagi added cat:test Test or CI related. to-be-backported Pull request that should be backported. labels Nov 23, 2019
@takagi takagi added this to the v7.0.0 milestone Nov 23, 2019
@takagi
Copy link
Member

takagi commented Nov 23, 2019

LGTM! The CI failure on Travis is not related to this change.

@takagi takagi merged commit eb37649 into chainer:master Nov 23, 2019
takagi added a commit to takagi/chainer that referenced this pull request Nov 23, 2019
Skip some `Convolution2D` tests for older numpy versions
@Crissman Crissman mentioned this pull request Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:test Test or CI related. to-be-backported Pull request that should be backported.
Projects
None yet
6 participants