Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Conversation

@DickJC123
Copy link
Contributor

@DickJC123 DickJC123 commented Mar 14, 2022

Description

This PR ports the unittest fixes of MXNet v1.x PR 20940 to MXNet 2.0. MXNet v1.x used PR 20940 to advance its numpy version from 1.18.5 to numpy 1.19. MXNet 2.0 has already advanced to use numpy 1.19, but did so by skipping the failing tests. Thus, the plan with this PR is to first re-enable the skipped tests, to show them once again failing, then push the fixes to unittests test_np_delete and test_np_array_function_protocol from v1.x PR 20940. In addition, the 3 tests test_np_random_{beta,f,chisquare} need a fix present in v1.x from a different PR.

Checklist

Essentials

  • PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • Code is well-documented

…ilities affecting numpy<1.19.1 (apache#20940)

* Pin numpy==1.19.1 to demonstrate issues

* Relax min numpy version

* Make test_np_array_function_protocol delete() testing work with numpy>=1.19

* Fix test_np_delete to also work with numpy>=1.19

* Pip install python module 'packaging'

* More pip-install 'packaging'

* Update windows requirements.txt

* Allow numpy as advanced as 1.19.5
@mseth10 mseth10 added the pr-work-in-progress PR is still work in progress label Mar 14, 2022
@DickJC123 DickJC123 changed the title [v2.0] [WIP] [BUGFIX] Port #20940 (Upgrade numpy to <1.20.0 ...) from v1.9.x [v2.0] [BUGFIX] Port #20940 (Upgrade numpy to <1.20.0 ...) from v1.9.x Mar 17, 2022
@mseth10 mseth10 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress pr-awaiting-review PR is waiting for code review and removed pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test labels Mar 17, 2022
Copy link
Contributor

@samskalicky samskalicky left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @DickJC123 !

@DickJC123 DickJC123 merged commit 95a6a54 into apache:master Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

pr-awaiting-review PR is waiting for code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants