File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
style-check :
12
- runs-on : ubuntu-18 .04
12
+ runs-on : ubuntu-20 .04
13
13
steps :
14
14
- name : Checkout source code
15
- uses : actions/checkout@v2
15
+ uses : actions/checkout@v3
16
16
with :
17
17
submodules : true
18
18
- name : Set up Python version
19
- uses : actions/setup-python@v2
19
+ uses : actions/setup-python@v4
20
20
with :
21
21
python-version : 3.6
22
22
- name : Install dependencies
23
23
run : |
24
- sudo apt-get install --yes clang-format-10
25
- python -m pip install -U yapf==0.30.0 nbformat pydocstyle==6.0.0
24
+ python -m pip install -U clang-format==10.0.1.1 yapf==0.30.0 nbformat pydocstyle==6.0.0
26
25
- name : Run style check
27
26
run : |
28
27
python ci/check_style.py
Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
ubuntu :
12
- runs-on : ubuntu-18 .04
12
+ runs-on : ubuntu-20 .04
13
13
strategy :
14
14
fail-fast : false
15
15
env :
16
16
NPROC : 2
17
17
steps :
18
18
- name : Checkout source code
19
- uses : actions/checkout@v2
19
+ uses : actions/checkout@v3
20
20
- name : Setup cache
21
- uses : actions/cache@v2
21
+ uses : actions/cache@v3
22
22
with :
23
23
# Ref: https://github.com/apache/incubator-mxnet/pull/18459/files
24
24
path : ~/.ccache
@@ -31,10 +31,10 @@ jobs:
31
31
restore-keys : |
32
32
${{ runner.os }}-ccache
33
33
- name : Set up Python version
34
- uses : actions/setup-python@v2
34
+ uses : actions/setup-python@v4
35
35
with :
36
36
python-version : " 3.10"
37
- # Pre-installed 18.04 packages: https://git.io/JfHmW
37
+ # Pre-installed packages: https://github.com/actions/runner-images/tree/main/images
38
38
- name : Install ccache
39
39
run : |
40
40
sudo apt-get --yes install ccache
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ def get_class_weights(num_per_class):
170
170
weight = num_per_class / float (sum (num_per_class ))
171
171
ce_label_weight = 1 / (weight + 0.02 )
172
172
173
- return np . expand_dims ( ce_label_weight , axis = 0 )
173
+ return ce_label_weight
174
174
175
175
@staticmethod
176
176
def invT (T ):
You can’t perform that action at this time.
0 commit comments