mdengler opened a new pull request, #21224:
URL: https://github.com/apache/mxnet/pull/21224

   ## Description ##
   (Complete-er version of PR #21223)
   
   Importing mxnet with numpy 1.20+ results in
   
   AttributeError: module 'numpy' has no attribute 'bool'.
   np.bool was a deprecated alias for the builtin bool. To avoid this error in 
existing code, use bool by itself. Doing this will not modify any behavior and 
is safe. If you specifically wanted the numpy scalar type, use np.bool_ here. 
The aliases was originally deprecated in NumPy 1.20; for more details and 
guidance see the original release note at:
   https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
   
   np.bool was a deprecated alias for the builtin bool, so replace np.bool with 
bool
   
   
   ## Checklist ##
   ### Essentials ###
   
   - [x] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], 
[FEATURE], [DOC], etc)
   - [x] Changes are complete (i.e. I finished coding on this PR)
   - [x] All changes have test coverage
   - [x] Code is well-documented
   
   ### Changes ###
   - [ ] `bool` replaces `np.bool` everywhere, since `np.bool` was an alias to 
`bool` anyway, and is no longer defined/bound 
   
   ## Comments ##
   - Backwards compatible (according to `numpy` error message, quoted above)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to