-
Notifications
You must be signed in to change notification settings - Fork 13
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
Pass test_rearrange.py #133
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.
Test (commit 89c71ec) passed in vega.
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.
Test (commit 89c71ec) passed in titanv.
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.
Test (commit f4dfcf3) passed in vega.
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.
Test (commit f4dfcf3) passed in titanv.
clpy/manipulation/rearrange.py
Outdated
@@ -20,11 +20,11 @@ def flip(a, axis): | |||
""" | |||
a_ndim = a.ndim | |||
if a_ndim < 1: | |||
raise ValueError('Input must be >= 1-d') | |||
raise core.core._AxisError('Input must be >= 1-d') |
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 do you modify this?
Does this cause any problem on test_rearrange.py?
If not, you should not make any changes now. This problem should be resolved when we update the base version and merge cupy/cupy@0d28378.
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.
ValueError cause Error at 3 test cases
def test_flip_insufficient_ndim(self, xp, dtype): |
def test_flip_invalid_axis(self, xp, dtype): |
def test_flip_invalid_negative_axis(self, xp, dtype): |
So, I modify exception.
Comment outing these test case is better than this modification?
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.
Do you mean that the original CuPy v2.1.0 gets same error if no modification?
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.
yes.
I test cupy v2.1.0 and get errors at same 3 test cases.
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.
Eeeeeeee...?
We have to wait v5.0.0 to resolve this problem on CuPy...?
OK, leave that aside. Currently our target is CuPy v2.1.0. So current ClPy (v2.1.0x) should behave same as it even if it causes some errors.
Please revert the modification and modify test_rearrange.py. And make comments about this problem on the test codes and make a new issue to revert the modirication when #33 would be resolved.
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 revert rearrange.py 's modification and modify test_rearrange.py.
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 made new issue about this problem.
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.
Test (commit 482bb8f) passed in vega.
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.
Test (commit 482bb8f) passed in titanv.
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.
Test (commit 240a00f) passed in titanv.
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.
Test (commit 240a00f) passed in vega.
@LWisteria Could you review it? |
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
solve #91
add import flip, fliplr, flipud, roll, rot90 to clpy/init.py
change exception type for invalid axis
add test_rearrange.py to ci