Skip to content

Commit 2c6bec9

Browse files
committed
update
1 parent ba272c1 commit 2c6bec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/_ascend_npu_benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
id: list-torch-version
106106
shell: bash
107107
run: |
108-
torch_version=$(python -c "import torch; print(torch.__version__)")
108+
torch_version=$(python -c "from importlib.metadata import version;print(version('torch'))")
109109
echo "torch-version=${torch_version}" >> $GITHUB_OUTPUT
110110
111111
- name: Install benchmark dependencies

0 commit comments

Comments
 (0)