Skip to content

I have to built mxnet locally on my M1 machine and then installed. But when I import the lib it threw AttributeError error with message module 'numpy' has no attribute 'bool'. This PR is a fix for the deprecation issue.redo debugger Python's ,PIP,PHP #122760

@triceviola24-sys

Description

@triceviola24-sys

I have to built mxnet locally on my M1 machine and then installed. But when I import the lib it threw AttributeError error with message module 'numpy' has no attribute 'bool'. This PR is a fix for the deprecation issue.

Description

Remove type onp.bool as np.bool was a deprecated alias for the builtin bool with numpy version 1.20.

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

Changes

  • Feature1, tests, (and when applicable, API doc)
  • Feature2, tests, (and when applicable, API doc)

Comments

  • If this change is a backward incompatible change, why must this change be made.
  • Interesting edge cases to note here

Originally posted by @abdullahselek in apache/mxnet#21213

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions