You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by "mdengler (via GitHub)" <gi...@apache.org> on 2023/10/25 21:28:35 UTC

[PR] [BUGFIX] Fix AttributeError: module 'numpy' has no attribute 'bool'. (#21165), builds on PR #21223 [mxnet]

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: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [BUGFIX] Fix AttributeError: module 'numpy' has no attribute 'bool'. (#21165), builds on PR #21223 [mxnet]

Posted by "lgov (via GitHub)" <gi...@apache.org>.
lgov commented on PR #21224:
URL: https://github.com/apache/mxnet/pull/21224#issuecomment-1793741250

   @mdengler : patch looks good to me, thanks. This project was retired by the community, so there will be no new release anymore.
   FYI: I'm using your patch to use the mxnet ImageRecordIter code in a PyTorch project for image classification, which is in my setup almost twice as fast as WebDataSet.


-- 
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: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [BUGFIX] Fix AttributeError: module 'numpy' has no attribute 'bool'. (#21165), builds on PR #21223 [mxnet]

Posted by "mdengler (via GitHub)" <gi...@apache.org>.
mdengler commented on PR #21224:
URL: https://github.com/apache/mxnet/pull/21224#issuecomment-1783800414

   @mxnet-bot run ci all


-- 
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: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [BUGFIX] Fix AttributeError: module 'numpy' has no attribute 'bool'. (#21165), builds on PR #21223 [mxnet]

Posted by "wmjim (via GitHub)" <gi...@apache.org>.
wmjim commented on PR #21224:
URL: https://github.com/apache/mxnet/pull/21224#issuecomment-1788511830

   什么时候能解决呢
   


-- 
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: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [BUGFIX] Fix AttributeError: module 'numpy' has no attribute 'bool'. (#21165), builds on PR #21223 [mxnet]

Posted by "mxnet-bot (via GitHub)" <gi...@apache.org>.
mxnet-bot commented on PR #21224:
URL: https://github.com/apache/mxnet/pull/21224#issuecomment-1780081908

   Hey @mdengler , Thanks for submitting the PR 
   All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands: 
   - To trigger all jobs: @mxnet-bot run ci [all] 
   - To trigger specific jobs: @mxnet-bot run ci [job1, job2] 
   *** 
   **CI supported jobs**: [miscellaneous, clang, unix-gpu, edge, windows-cpu, unix-cpu, sanity, website, centos-gpu, centos-cpu, windows-gpu]
   *** 
   _Note_: 
    Only following 3 categories can trigger CI :PR Author, MXNet Committer, Jenkins Admin. 
   All CI tests must pass before the PR can be merged. 
   


-- 
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: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [BUGFIX] Fix AttributeError: module 'numpy' has no attribute 'bool'. (#21165), builds on PR #21223 [mxnet]

Posted by "mimiao2017 (via GitHub)" <gi...@apache.org>.
mimiao2017 commented on PR #21224:
URL: https://github.com/apache/mxnet/pull/21224#issuecomment-1780083386

   您好,您发给我的邮件已收到,我会尽快查看。


-- 
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: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org