Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
c3835415
Unverified
Commit
c3835415
authored
Aug 24, 2022
by
Zaida Zhou
Committed by
GitHub
Aug 24, 2022
Browse files
[Refactor] Modify the importing path due to mmengine changes (#2224)
parent
5fdd246a
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
tests/test_ops/test_deform_conv.py
tests/test_ops/test_deform_conv.py
+2
-1
tests/test_ops/test_modulated_deform_conv.py
tests/test_ops/test_modulated_deform_conv.py
+2
-1
tests/test_utils/test_parrots_jit.py
tests/test_utils/test_parrots_jit.py
+1
-1
No files found.
tests/test_ops/test_deform_conv.py
View file @
c3835415
...
...
@@ -2,7 +2,8 @@
import
numpy
as
np
import
pytest
import
torch
from
mmengine.utils
import
TORCH_VERSION
,
digit_version
from
mmengine.utils
import
digit_version
from
mmengine.utils.dl_utils
import
TORCH_VERSION
try
:
# If PyTorch version >= 1.6.0 and fp16 is enabled, torch.cuda.amp.autocast
...
...
tests/test_ops/test_modulated_deform_conv.py
View file @
c3835415
...
...
@@ -4,7 +4,8 @@ import os
import
numpy
import
pytest
import
torch
from
mmengine.utils
import
TORCH_VERSION
,
digit_version
from
mmengine.utils
import
digit_version
from
mmengine.utils.dl_utils
import
TORCH_VERSION
try
:
# If PyTorch version >= 1.6.0 and fp16 is enabled, torch.cuda.amp.autocast
...
...
tests/test_utils/test_parrots_jit.py
View file @
c3835415
# Copyright (c) OpenMMLab. All rights reserved.
import
pytest
import
torch
from
mmengine.utils
import
TORCH_VERSION
from
mmengine.utils
.dl_utils
import
TORCH_VERSION
import
mmcv
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment