Skip to content

Commit 281e341

Browse files
committed
update
1 parent 74b394f commit 281e341

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.github/workflows/_ascend_npu_benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ jobs:
112112
id: install-torch
113113
shell: bash
114114
run: |
115-
torch-version=$(python -c "import torch; print(torch.__version__)")
116-
echo "torch-version=${torch-version}" >> $GITHUB_OUTPUT
115+
torch_version=$(python -c "import torch; print(torch.__version__)")
116+
echo "torch-version=${torch_version}" >> $GITHUB_OUTPUT
117117
118118
# We must use numpy 1.x
119119
- name: Generate pip's constraint file

.github/workflows/_ascend_npu_build_torch.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ jobs:
8686
id: list-dist
8787
working-directory: pytorch/dist
8888
run: |
89-
dist-name=$(ls *.whl)
90-
dist-path=$(pwd)/${dist-name}
91-
echo "dist-name=${dist-name}" >> $GITHUB_OUTPUT
92-
echo "dist-path=${dist-path}" >> $GITHUB_OUTPUT
89+
dist_name=$(ls torch*.whl)
90+
dist_path=$(pwd)/${dist_name}
91+
echo "dist-name=${dist_name}" >> $GITHUB_OUTPUT
92+
echo "dist-path=${dist_path}" >> $GITHUB_OUTPUT
9393
9494
- name: Upload distribution artifact
9595
id: upload-dist

.github/workflows/_ascend_npu_build_torch_npu.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ jobs:
9494
id: install-torch
9595
shell: bash
9696
run: |
97-
torch-version=$(python -c "import torch; print(torch.__version__)")
98-
echo "torch-version=${torch-version}" >> $GITHUB_OUTPUT
97+
torch_version=$(python -c "import torch; print(torch.__version__)")
98+
echo "torch-version=${torch_version}" >> $GITHUB_OUTPUT
9999
100100
- name: Generate pip's constraint file
101101
working-directory: torch_npu
@@ -114,8 +114,8 @@ jobs:
114114
id: list-py-version
115115
working-directory: torch_npu
116116
run: |
117-
py-version=$(python --version | awk '{print $2}' | cut -d '.' -f 1,2)
118-
echo "py-version=${py-version}" >> $GITHUB_OUTPUT
117+
py_version=$(python --version | awk '{print $2}' | cut -d '.' -f 1,2)
118+
echo "py-version=${py_version}" >> $GITHUB_OUTPUT
119119
120120
- name: Build torch_npu
121121
working-directory: torch_npu
@@ -126,10 +126,10 @@ jobs:
126126
id: list-dist
127127
working-directory: torch_npu/dist
128128
run: |
129-
dist-name=$(ls torch_npu*.whl)
130-
dist-path=$(pwd)/${dist-name}
131-
echo "dist-name=${dist-name}" >> $GITHUB_OUTPUT
132-
echo "dist-path=${dist-path}" >> $GITHUB_OUTPUT
129+
dist_name=$(ls torch_npu*.whl)
130+
dist_path=$(pwd)/${dist_name}
131+
echo "dist-name=${dist_name}" >> $GITHUB_OUTPUT
132+
echo "dist-path=${dist_path}" >> $GITHUB_OUTPUT
133133
134134
- name: Upload distribution artifact
135135
id: upload-dist

.github/workflows/_ascend_npu_ut.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ jobs:
108108
id: install-torch
109109
shell: bash
110110
run: |
111-
torch-version=$(python -c "import torch; print(torch.__version__)")
112-
echo "torch-version=${torch-version}" >> $GITHUB_OUTPUT
111+
torch_version=$(python -c "import torch; print(torch.__version__)")
112+
echo "torch-version=${torch_version}" >> $GITHUB_OUTPUT
113113
114114
- name: Generate pip's constraint file
115115
working-directory: torch_npu

0 commit comments

Comments
 (0)