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 numbers for input check in roi_{average|max}_{pooling|align}_2d.py
#5636
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions. |
waiting for #5635, not stale |
@knorth55 Could you fix the conflicts? |
I merged master branch and travis passed. |
Jenkins, test this please |
Jenkins CI test (for commit 3cd5e48, target branch master) failed with status FAILURE. |
Jenkins CI test (for commit ae7d9ca, target branch master) succeeded! |
@mitmul can you review this again ? |
@Hakuyume kindly ping. |
import numbers
import numpy as np
isinstance(int(0), numbers.Integral) # True
isinstance(np.int32(0), numbers.Integral) # True
isinstance(float(0), numbers.Integral) # False |
@Hakuyume i update to use |
Jenkins CI test (for commit 095a94d, target branch master) failed with status FAILURE. |
Jenkins, test this please |
Jenkins CI test (for commit 095a94d, target branch master) succeeded! |
@knorth55 I'm very sorry for late reaction to your PRs... Could you fix the conflicts? Then I'll re-run the tests and merge this. |
@mitmul No problem. I resolved the conflict. |
@mitmul This pull-request is marked as |
Jenkins, test this please |
Jenkins CI test (for commit ccc6293, target branch master) failed with status FAILURE. |
The test exceeds timeout limit in Python2.7. |
@mitmul This pull-request is marked as |
3 similar comments
@mitmul This pull-request is marked as |
@mitmul This pull-request is marked as |
@mitmul This pull-request is marked as |
I'll rerun tests because the last two commits LGTM. Jenkins, test this please. |
Jenkins CI test (for commit 89e90b4, target branch master) failed with status FAILURE. |
Jenkins test failed, but it is not related to this PR.
|
@mitmul This pull-request is marked as |
Jenkins, test this please. |
Jenkins CI test (for commit 89e90b4, target branch master) succeeded! |
roi_{average|max}_{pooling|align}_2d.py
Jenkins CI test (for commit 89e90b4, target branch master) failed with status FAILURE. |
Merge after #5634 and #5635.use
numpy.issubdtype
instead ofisinstance
to check function args.numpy.issubdtype
supportsint, float
andnumpy.integer, numpy.floating
.