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 FunctionTestCase to test F.decov #8522

Merged
merged 3 commits into from
Dec 25, 2019
Merged

Conversation

toslunar
Copy link
Member

FunctionTestCase defaults to numerical_grad_dtype = numpy.float64, which would reduce the flakiness of the test.

Close #8512.

@toslunar toslunar added cat:test Test or CI related. to-be-backported Pull request that should be backported. labels Dec 24, 2019
@emcastillo emcastillo self-assigned this Dec 25, 2019


def _deconv(h):
def _decov(h):
h = cuda.to_cpu(h)
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 that forward_expected only gets numpy arrays so this call may not be necessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice catch!

@emcastillo emcastillo added this to the v7.1.0 milestone Dec 25, 2019
Copy link
Member

@emcastillo emcastillo left a comment

Choose a reason for hiding this comment

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

LGTM

@emcastillo
Copy link
Member

Jenkins, test this please

@emcastillo emcastillo added the st:test-and-merge State indicating that pull request is approved by a reviewer and can be merged after CI passes. label Dec 25, 2019
@chainer-ci
Copy link
Member

Jenkins CI test (for commit 59c12e8, target branch master) succeeded!

@mergify mergify bot merged commit 9ff42fe into chainer:master Dec 25, 2019
@toslunar toslunar deleted the test-decov branch December 25, 2019 08:57
toslunar pushed a commit to toslunar/chainer that referenced this pull request Dec 25, 2019
Use `FunctionTestCase` to test `F.decov`
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. st:test-and-merge State indicating that pull request is approved by a reviewer and can be merged after CI passes. to-be-backported Pull request that should be backported.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Flaky] Test.DeCov is Flaky
3 participants