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
[chainerx] Implement Relu in c++ #6731
Conversation
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.
Could you fix for the C++/Python static checks?
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 except for the comment.
|
||
|
||
def relu(x): | ||
"""Rectified Linear Unit function. |
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.
Could you move this comment to chainerx/_docs/routines.py
?
Co-Authored-By: dido1998 <adidolkar123@gmail.com>
@dido1998 Travis test seems to fail for a dtype mismatch. Could you fix it? |
I will check it out today. |
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.
TestRelu
in test_math.py
seem to pass, but test_relu
in test_activation.py
seems to fails. Could you remove the old test and move the test which you added to test_activation.py
?
# Special shapes | ||
chainer.testing.product({ | ||
'shape': [(), (0,), (1,), (2, 0, 3), (1, 1, 1), (2, 3)], | ||
'in_dtypes,out_dtype': _in_out_float_dtypes_math_functions, |
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.
Why not testing also with integer dtypes?
'in_dtypes,out_dtype': _in_out_float_dtypes_math_functions, | |
'in_dtypes,out_dtype': _in_out_dtypes_math_functions, |
I have made the requested changes. |
Jenkins, test this please. |
Jenkins CI test (for commit 421616a, target branch master) failed with status FAILURE. |
Jenkins, test this please. |
Jenkins CI test (for commit 421616a, target branch master) failed with status FAILURE. |
LGTM. Thank you! |
ref:
chainer/chainerx/activation.py
Line 17 in 077fdb1