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
6e9ce183
Unverified
Commit
6e9ce183
authored
Feb 24, 2022
by
Zaida Zhou
Committed by
GitHub
Feb 24, 2022
Browse files
Add copyright pre-commit-hook (#1742)
* first commit * Add copyright pre-commit-hook
parent
0a8e67f7
Changes
119
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
20 additions
and
0 deletions
+20
-0
tests/data/config/i_base.py
tests/data/config/i_base.py
+1
-0
tests/data/config/i_child.py
tests/data/config/i_child.py
+1
-0
tests/data/config/l.py
tests/data/config/l.py
+1
-0
tests/data/config/l1.py
tests/data/config/l1.py
+1
-0
tests/data/config/l4.py
tests/data/config/l4.py
+1
-0
tests/data/config/m.py
tests/data/config/m.py
+1
-0
tests/data/config/n.py
tests/data/config/n.py
+1
-0
tests/data/config/q.py
tests/data/config/q.py
+1
-0
tests/data/config/r.py
tests/data/config/r.py
+1
-0
tests/data/config/s.py
tests/data/config/s.py
+1
-0
tests/data/config/t.py
tests/data/config/t.py
+1
-0
tests/data/config/u.py
tests/data/config/u.py
+1
-0
tests/data/config/v.py
tests/data/config/v.py
+1
-0
tests/data/scripts/hello.py
tests/data/scripts/hello.py
+1
-0
tests/test_cnn/test_build_layers.py
tests/test_cnn/test_build_layers.py
+1
-0
tests/test_cnn/test_context_block.py
tests/test_cnn/test_context_block.py
+1
-0
tests/test_cnn/test_conv2d_adaptive_padding.py
tests/test_cnn/test_conv2d_adaptive_padding.py
+1
-0
tests/test_cnn/test_conv_module.py
tests/test_cnn/test_conv_module.py
+1
-0
tests/test_cnn/test_depthwise_seperable_conv_module.py
tests/test_cnn/test_depthwise_seperable_conv_module.py
+1
-0
tests/test_cnn/test_flops_counter.py
tests/test_cnn/test_flops_counter.py
+1
-0
No files found.
tests/data/config/i_base.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
item1
=
[
1
,
2
]
item1
=
[
1
,
2
]
item2
=
{
'a'
:
0
}
item2
=
{
'a'
:
0
}
item3
=
True
item3
=
True
...
...
tests/data/config/i_child.py
View file @
6e9ce183
# 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
}
tests/data/config/l.py
View file @
6e9ce183
# 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'
tests/data/config/l1.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
item1
=
[
1
,
2
]
item1
=
[
1
,
2
]
tests/data/config/l4.py
View file @
6e9ce183
# 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
]))
tests/data/config/m.py
View file @
6e9ce183
# 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'
tests/data/config/n.py
View file @
6e9ce183
# 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'
...
...
tests/data/config/q.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
custom_imports
=
dict
(
imports
=
[
'r'
],
allow_failed_imports
=
False
)
custom_imports
=
dict
(
imports
=
[
'r'
],
allow_failed_imports
=
False
)
tests/data/config/r.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
import
os
import
os
os
.
environ
[
"TEST_VALUE"
]
=
'test'
os
.
environ
[
"TEST_VALUE"
]
=
'test'
tests/data/config/s.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
item
=
[{
'a'
:
0
},
{
'b'
:
0
,
'c'
:
0
}]
item
=
[{
'a'
:
0
},
{
'b'
:
0
,
'c'
:
0
}]
tests/data/config/t.py
View file @
6e9ce183
# 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'
...
...
tests/data/config/u.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
_base_
=
[
'./t.py'
]
_base_
=
[
'./t.py'
]
base
=
'_base_.item8'
base
=
'_base_.item8'
item11
=
{{
_base_
.
item8
}}
item11
=
{{
_base_
.
item8
}}
...
...
tests/data/config/v.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
_base_
=
[
'./u.py'
]
_base_
=
[
'./u.py'
]
item21
=
{{
_base_
.
item11
}}
item21
=
{{
_base_
.
item11
}}
item22
=
item21
item22
=
item21
...
...
tests/data/scripts/hello.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
#!/usr/bin/env python
#!/usr/bin/env python
import
argparse
import
argparse
...
...
tests/test_cnn/test_build_layers.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
import
numpy
as
np
import
numpy
as
np
import
pytest
import
pytest
import
torch
import
torch
...
...
tests/test_cnn/test_context_block.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
import
pytest
import
pytest
import
torch
import
torch
...
...
tests/test_cnn/test_conv2d_adaptive_padding.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
import
torch
import
torch
from
mmcv.cnn.bricks
import
Conv2dAdaptivePadding
from
mmcv.cnn.bricks
import
Conv2dAdaptivePadding
...
...
tests/test_cnn/test_conv_module.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
import
warnings
import
warnings
from
unittest.mock
import
patch
from
unittest.mock
import
patch
...
...
tests/test_cnn/test_depthwise_seperable_conv_module.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
import
pytest
import
pytest
import
torch
import
torch
import
torch.nn
as
nn
import
torch.nn
as
nn
...
...
tests/test_cnn/test_flops_counter.py
View file @
6e9ce183
# Copyright (c) OpenMMLab. All rights reserved.
import
pytest
import
pytest
import
torch
import
torch
import
torch.nn
as
nn
import
torch.nn
as
nn
...
...
Prev
1
2
3
4
5
6
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