-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
|
||
|
||
def _deconv(h): | ||
def _decov(h): | ||
h = cuda.to_cpu(h) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Jenkins, test this please |
Jenkins CI test (for commit 59c12e8, target branch master) succeeded! |
Use `FunctionTestCase` to test `F.decov`
FunctionTestCase
defaults tonumerical_grad_dtype = numpy.float64
, which would reduce the flakiness of the test.Close #8512.