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

can not find _BatchNorm in mmengine #3054

Open
2 tasks done
lsj1111 opened this issue Mar 11, 2024 · 0 comments
Open
2 tasks done

can not find _BatchNorm in mmengine #3054

lsj1111 opened this issue Mar 11, 2024 · 0 comments

Comments

@lsj1111
Copy link

lsj1111 commented Mar 11, 2024

Prerequisite

Environment

mmcv 2.0.1

Reproduces the problem - code sample

from mmcv.utils import (IS_NPU_AVAILABLE, _BatchNorm,
)

Reproduces the problem - command or script

In the mmcv1.x , the method of _BatchNorm is in the mmcv.utils,but now in the mmcv 2.x ,it does not exist,and i can't find it in the mmengine

Reproduces the problem - error message

ImportError: cannot import name 'BatchNorm' from 'mmcv.utils' (D:\Tool\Anaconda\Anaconda\envs\openmmlab\lib\site-packages\mmcv\utils_init.py)

Additional information

In the mmcv1.x , the method of _BatchNorm is in the mmcv.utils,but now in the mmcv 2.x ,it does not exist,and i can't find it in the mmengine

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

No branches or pull requests

1 participant