mirror of https://github.com/open-mmlab/mmcv.git
parent
0a8e67f753
commit
6e9ce18323
|
@ -40,6 +40,12 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: docformatter
|
- id: docformatter
|
||||||
args: ["--in-place", "--wrap-descriptions", "79"]
|
args: ["--in-place", "--wrap-descriptions", "79"]
|
||||||
|
|
||||||
|
- repo: https://github.com/open-mmlab/pre-commit-hooks
|
||||||
|
rev: v0.2.0 # Use the ref you want to point at
|
||||||
|
hooks:
|
||||||
|
- id: check-copyright
|
||||||
|
args: ["mmcv", "tests", "--excludes", "mmcv/ops"]
|
||||||
# - repo: local
|
# - repo: local
|
||||||
# hooks:
|
# hooks:
|
||||||
# - id: clang-format
|
# - id: clang-format
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import inspect
|
import inspect
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
import mmcv
|
import mmcv
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
from .builder import RUNNER_BUILDERS, RUNNERS
|
from .builder import RUNNER_BUILDERS, RUNNERS
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import onnx
|
import onnx
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
# The 1.6 release of PyTorch switched torch.save to use a new zipfile-based
|
# The 1.6 release of PyTorch switched torch.save to use a new zipfile-based
|
||||||
# file format. It will cause RuntimeError when a checkpoint was saved in
|
# file format. It will cause RuntimeError when a checkpoint was saved in
|
||||||
# torch >= 1.6.0 but loaded in torch < 1.7.0.
|
# torch >= 1.6.0 but loaded in torch < 1.7.0.
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
item1 = [1, 2]
|
item1 = [1, 2]
|
||||||
item2 = {'a': 0}
|
item2 = {'a': 0}
|
||||||
item3 = True
|
item3 = True
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
item1 = [1, 2]
|
item1 = [1, 2]
|
||||||
item2 = {'a': 0}
|
item2 = {'a': 0}
|
||||||
item3 = True
|
item3 = True
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
item1 = [1, 2]
|
item1 = [1, 2]
|
||||||
item2 = {'a': 0}
|
item2 = {'a': 0}
|
||||||
item3 = True
|
item3 = True
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
from mmcv import Config # isort:skip
|
from mmcv import Config # isort:skip
|
||||||
|
|
||||||
cfg = Config.fromfile('./tests/data/config/a.py')
|
cfg = Config.fromfile('./tests/data/config/a.py')
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = './base.py'
|
_base_ = './base.py'
|
||||||
item1 = [2, 3]
|
item1 = [2, 3]
|
||||||
item2 = {'a': 1}
|
item2 = {'a': 1}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = './base.py'
|
_base_ = './base.py'
|
||||||
item1 = {'a': 0, '_delete_': True}
|
item1 = {'a': 0, '_delete_': True}
|
||||||
item2 = {'b': 0}
|
item2 = {'b': 0}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = './expected.py'
|
_base_ = './expected.py'
|
||||||
|
|
||||||
_deprecation_ = dict(
|
_deprecation_ = dict(
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = './deprecated.py'
|
_base_ = './deprecated.py'
|
|
@ -1,2 +1,3 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = './base.py'
|
_base_ = './base.py'
|
||||||
item3 = {'a': 1}
|
item3 = {'a': 1}
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
item1 = 'expected'
|
item1 = 'expected'
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = './d.py'
|
_base_ = './d.py'
|
||||||
item4 = 'test_recursive_bases'
|
item4 = 'test_recursive_bases'
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
filename = 'reserved.py'
|
filename = 'reserved.py'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
item1 = '{{fileBasename}}'
|
item1 = '{{fileBasename}}'
|
||||||
item2 = '{{ fileDirname}}'
|
item2 = '{{ fileDirname}}'
|
||||||
item3 = 'abc_{{ fileBasenameNoExtension }}'
|
item3 = 'abc_{{ fileBasenameNoExtension }}'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
item1 = [1, 2]
|
item1 = [1, 2]
|
||||||
item2 = {'a': 0}
|
item2 = {'a': 0}
|
||||||
item3 = True
|
item3 = True
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = './i_base.py'
|
_base_ = './i_base.py'
|
||||||
item_cfg = {'b': 2}
|
item_cfg = {'b': 2}
|
||||||
item6 = {'cfg': item_cfg}
|
item6 = {'cfg': item_cfg}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py']
|
_base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py']
|
||||||
item3 = False
|
item3 = False
|
||||||
item4 = 'test'
|
item4 = 'test'
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
item1 = [1, 2]
|
item1 = [1, 2]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
item5 = dict(a=0, b=1)
|
item5 = dict(a=0, b=1)
|
||||||
item6 = [dict(a=0), dict(b=1)]
|
item6 = [dict(a=0), dict(b=1)]
|
||||||
item7 = dict(a=[0, 1, 2], b=dict(c=[3.1, 4.2, 5.3]))
|
item7 = dict(a=[0, 1, 2], b=dict(c=[3.1, 4.2, 5.3]))
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = ['./l1.py', './l2.yaml', './l3.json', 'a.py']
|
_base_ = ['./l1.py', './l2.yaml', './l3.json', 'a.py']
|
||||||
item3 = False
|
item3 = False
|
||||||
item4 = 'test'
|
item4 = 'test'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
test_item1 = [1, 2]
|
test_item1 = [1, 2]
|
||||||
bool_item2 = True
|
bool_item2 = True
|
||||||
str_item3 = 'test'
|
str_item3 = 'test'
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
custom_imports = dict(imports=['r'], allow_failed_imports=False)
|
custom_imports = dict(imports=['r'], allow_failed_imports=False)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
|
|
||||||
os.environ["TEST_VALUE"] = 'test'
|
os.environ["TEST_VALUE"] = 'test'
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
item = [{'a': 0}, {'b': 0, 'c': 0}]
|
item = [{'a': 0}, {'b': 0, 'c': 0}]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py']
|
_base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py']
|
||||||
item3 = False
|
item3 = False
|
||||||
item4 = 'test'
|
item4 = 'test'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = ['./t.py']
|
_base_ = ['./t.py']
|
||||||
base = '_base_.item8'
|
base = '_base_.item8'
|
||||||
item11 = {{ _base_.item8 }}
|
item11 = {{ _base_.item8 }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
_base_ = ['./u.py']
|
_base_ = ['./u.py']
|
||||||
item21 = {{ _base_.item11 }}
|
item21 = {{ _base_.item11 }}
|
||||||
item22 = item21
|
item22 = item21
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
from mmcv.cnn.bricks import Conv2dAdaptivePadding
|
from mmcv.cnn.bricks import Conv2dAdaptivePadding
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import warnings
|
import warnings
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
from mmcv.cnn.bricks import GeneralizedAttention
|
from mmcv.cnn.bricks import GeneralizedAttention
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
from torch.nn.functional import relu6
|
from torch.nn.functional import relu6
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
||||||
import mmcv
|
import mmcv
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
from mmcv.cnn.bricks import Scale
|
from mmcv.cnn.bricks import Scale
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
import torch.nn.functional as F
|
import torch.nn.functional as F
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
import os.path as osp
|
import os.path as osp
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
import torch.nn.functional as F
|
import torch.nn.functional as F
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
from torch.autograd import gradcheck
|
from torch.autograd import gradcheck
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
"""
|
"""
|
||||||
CommandLine:
|
CommandLine:
|
||||||
pytest tests/test_corner_pool.py
|
pytest tests/test_corner_pool.py
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
"""
|
"""
|
||||||
CommandLine:
|
CommandLine:
|
||||||
pytest tests/test_merge_cells.py
|
pytest tests/test_merge_cells.py
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
import warnings
|
import warnings
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
from torch.autograd import gradcheck
|
from torch.autograd import gradcheck
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
from torch import nn
|
from torch import nn
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue