Skip to content

Commit 74b394f

Browse files
committed
update
1 parent 937a69a commit 74b394f

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

.github/actions/install-torch/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ runs:
2626
id: list-torch-version
2727
shell: bash
2828
run: |
29-
torch_version=$(python -c "import torch; print(torch.__version__)")
30-
echo "torch_version=${torch_version}" >> $GITHUB_OUTPUT
29+
torch-version=$(python -c "import torch; print(torch.__version__)")
30+
echo "torch-version=${torch-version}" >> $GITHUB_OUTPUT

.github/workflows/_ascend_npu_benchmark.yml

Lines changed: 7 additions & 7 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
@@ -135,11 +135,11 @@ jobs:
135135
run: |
136136
pip install ${{ inputs.artifact_name }}
137137
138-
# - name: Install torch_npu dependencies
139-
# working-directory: ascend_npu
140-
# run: |
141-
# curl -fsSL -O https://raw.githubusercontent.com/Ascend/pytorch/refs/heads/master/requirements.txt
142-
# pip install -r requirements.txt
138+
#- name: Install torch_npu dependencies
139+
# working-directory: ascend_npu
140+
# run: |
141+
# curl -fsSL -O https://raw.githubusercontent.com/Ascend/pytorch/refs/heads/master/requirements.txt
142+
# pip install -r requirements.txt
143143

144144
- name: Install benchmark dependencies
145145
run: |

.github/workflows/_ascend_npu_build_torch.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
outputs:
2020
torch-artifact:
2121
description: 'The distribution artifact name of torch'
22-
value: ${{ jobs.build.outputs.dist_name }}
22+
value: ${{ jobs.build.outputs.dist-name }}
2323

2424
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
2525
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
@@ -42,7 +42,7 @@ jobs:
4242
ALL_PROXY: socks5://127.0.0.1:10808
4343
SOCKS_PROXY: socks5://127.0.0.1:10808
4444
outputs:
45-
dist_name: ${{ steps.list-dist.outputs.dist_name }}
45+
dist-name: ${{ steps.list-dist.outputs.dist-name }}
4646
steps:
4747
- name: Config mirrors
4848
run: |
@@ -86,18 +86,18 @@ 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 *.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
9696
continue-on-error: true
9797
uses: actions/upload-artifact@v4
9898
with:
99-
name: ${{ steps.list-dist.outputs.dist_name }}
100-
path: ${{ steps.list-dist.outputs.dist_path }}
99+
name: ${{ steps.list-dist.outputs.dist-name }}
100+
path: ${{ steps.list-dist.outputs.dist-path }}
101101
if-no-files-found: error
102102
retention-days: 1
103103
overwrite: true

.github/workflows/_ascend_npu_build_torch_npu.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
outputs:
1919
torch-npu-artifact:
2020
description: 'The distribution artifact name of torch_npu'
21-
value: ${{ jobs.build.outputs.dist_name }}
21+
value: ${{ jobs.build.outputs.dist-name }}
2222

2323
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
2424
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
@@ -41,7 +41,7 @@ jobs:
4141
ALL_PROXY: socks5://127.0.0.1:10808
4242
SOCKS_PROXY: socks5://127.0.0.1:10808
4343
outputs:
44-
dist_name: ${{ steps.list-dist.outputs.dist_name }}
44+
dist-name: ${{ steps.list-dist.outputs.dist-name }}
4545
steps:
4646
- name: Config mirrors
4747
run: |
@@ -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,30 +114,30 @@ 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
122122
run: |
123-
bash ci/build.sh --python=${{ steps.list-py-version.outputs.py_version }}
123+
bash ci/build.sh --python=${{ steps.list-py-version.outputs.py-version }}
124124
125125
- name: List distribution package
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
136136
continue-on-error: true
137137
uses: actions/upload-artifact@v4
138138
with:
139-
name: ${{ steps.list-dist.outputs.dist_name }}
140-
path: ${{ steps.list-dist.outputs.dist_path }}
139+
name: ${{ steps.list-dist.outputs.dist-name }}
140+
path: ${{ steps.list-dist.outputs.dist-path }}
141141
if-no-files-found: error
142142
retention-days: 1
143143
overwrite: true

.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)