Skip to content
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

Replace np.long with np.int64 #2872

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

chbehrens
Copy link

Motivation

This is a small PR to replace np.long. It has obviously already been done in most places in #1270 and should silence warnings from numpy as np.long is deprecated since numpy version 1.20 (https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations)

Modification

Replace the last occurrence of np.long by np.int64.

BC-breaking (Optional)

Does the modification introduce changes that break the back-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

No breaking changes, just a minor fix.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  3. If the modification has potential influence on downstream projects, this PR should be tested with downstream projects.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

@CLAassistant
Copy link

CLAassistant commented Jan 9, 2024

CLA assistant check
All committers have signed the CLA.

@Tai-Wang Tai-Wang merged commit 962f093 into open-mmlab:dev-1.x Jan 17, 2024
15 of 17 checks passed
JfortissJ pushed a commit to JfortissJ/mmdetection3d that referenced this pull request Jun 20, 2024
Co-authored-by: Christian Behrens <9531979+chbehrens@users.noreply.github.com>
dymnmysn added a commit to dymnmysn/mmdetection3d that referenced this pull request Aug 11, 2024
[Fix] Replace np.long with np.int64 (open-mmlab#2872)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants