File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -61,28 +61,19 @@ jobs:
6161 apt update
6262 apt install --no-install-recommends -y git gcc g++ make cmake ninja-build
6363
64- - name : Checkout
65- uses : actions/checkout@v4
66-
67- - name : Download distribution artifact
64+ - name : Download ${{ inputs.artifact_name }}
6865 uses : actions/download-artifact@v4
6966 with :
7067 name : ${{ inputs.artifact_name }}
7168 path : ascend_npu
7269
73- - name : Install torch
74- working-directory : ascend_npu
75- run : |
76- pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
77-
7870 - name : Install torch_npu
7971 working-directory : ascend_npu
8072 run : |
8173 pip install ${{ inputs.artifact_name }}
82- npu_is_available=$(python -c "import torch; print(torch.npu.is_available())")
83- npu_count=$(python -c "import torch; print(torch.npu.device_count())")
84- echo "NPU is available: ${npu_is_available}"
85- echo "NPU count: ${npu_count}"
74+
75+ - name : Checkout
76+ uses : actions/checkout@v4
8677
8778 - name : Checkout benchmark
8879 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments