@@ -126,7 +126,7 @@ jobs:
126
126
- bash : |
127
127
set -e
128
128
python requirements/collect_env_details.py
129
- python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu }'"
129
+ python -c "import torch ; nb_gpus = torch.cuda.device_count() ; assert nb_gpus == 2, f'GPU: {nb_gpus }'"
130
130
python requirements/pytorch/check-avail-extras.py
131
131
python -c "import bitsandbytes"
132
132
displayName: "Env details"
@@ -138,10 +138,12 @@ jobs:
138
138
displayName : " Testing: PyTorch doctests"
139
139
140
140
- bash : |
141
- python .actions/assistant.py copy_replace_imports --source_dir="./tests/tests_pytorch" \
141
+ python .actions/assistant.py copy_replace_imports \
142
+ --source_dir="./tests/tests_pytorch" \
142
143
--source_import="lightning.fabric,lightning.pytorch" \
143
144
--target_import="lightning_fabric,pytorch_lightning"
144
- python .actions/assistant.py copy_replace_imports --source_dir="./examples/pytorch/basics" \
145
+ python .actions/assistant.py copy_replace_imports \
146
+ --source_dir="./examples/pytorch/basics" \
145
147
--source_import="lightning.fabric,lightning.pytorch" \
146
148
--target_import="lightning_fabric,pytorch_lightning"
147
149
# without succeeded this could run even if the job has already failed
@@ -183,8 +185,10 @@ jobs:
183
185
# https://docs.codecov.com/docs/codecov-uploader
184
186
curl -Os https://uploader.codecov.io/latest/linux/codecov
185
187
chmod +x codecov
186
- ./codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) \
187
- --flags=gpu,pytest,${COVERAGE_SOURCE} --name="GPU-coverage" --env=linux,azure
188
+ ./codecov --token=$(CODECOV_TOKEN) \
189
+ --commit=$(Build.SourceVersion) \
190
+ --flags=gpu,pytest,${COVERAGE_SOURCE} \
191
+ --name="GPU-coverage" --env=linux,azure
188
192
ls -l
189
193
workingDirectory: tests/tests_pytorch
190
194
displayName: "Statistics"
0 commit comments