Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
5421f12a
Unverified
Commit
5421f12a
authored
Oct 21, 2022
by
vfdev
Committed by
GitHub
Oct 21, 2022
Browse files
Revert "[proto] Enable GPU tests on prototype (#6665)" (#6809)
This reverts commit
d0de55db
.
parent
f88ab124
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
84 deletions
+1
-84
.github/workflows/prototype-tests-gpu.yml
.github/workflows/prototype-tests-gpu.yml
+0
-80
test/test_prototype_transforms_functional.py
test/test_prototype_transforms_functional.py
+1
-4
No files found.
.github/workflows/prototype-tests-gpu.yml
deleted
100644 → 0
View file @
f88ab124
# prototype-tests.yml adapted for self-hosted with gpu
name
:
tests-gpu
on
:
pull_request
:
jobs
:
prototype
:
strategy
:
fail-fast
:
false
runs-on
:
[
self-hosted
,
linux.4xlarge.nvidia.gpu
]
container
:
image
:
pytorch/conda-builder:cuda116
options
:
--gpus all
steps
:
-
name
:
Run nvidia-smi
run
:
nvidia-smi
-
name
:
Upgrade system packages
run
:
python -m pip install --upgrade pip setuptools wheel
-
name
:
Checkout repository
uses
:
actions/checkout@v3
-
name
:
Install PyTorch nightly builds
run
:
pip install --progress-bar=off --pre torch torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cu116/
-
name
:
Install torchvision
run
:
pip install --progress-bar=off --no-build-isolation --editable .
-
name
:
Install other prototype dependencies
run
:
pip install --progress-bar=off scipy pycocotools h5py iopath
-
name
:
Install test requirements
run
:
pip install --progress-bar=off pytest pytest-mock pytest-cov
-
name
:
Mark setup as complete
id
:
setup
run
:
python -c "import torch; exit(not torch.cuda.is_available())"
-
name
:
Run prototype features tests
shell
:
bash
run
:
|
pytest \
--durations=20 \
--cov=torchvision/prototype/features \
--cov-report=term-missing \
test/test_prototype_features*.py
-
name
:
Run prototype datasets tests
if
:
success() || ( failure() && steps.setup.conclusion == 'success' )
shell
:
bash
run
:
|
pytest \
--durations=20 \
--cov=torchvision/prototype/datasets \
--cov-report=term-missing \
test/test_prototype_datasets*.py
-
name
:
Run prototype transforms tests
if
:
success() || ( failure() && steps.setup.conclusion == 'success' )
shell
:
bash
run
:
|
pytest \
--durations=20 \
--cov=torchvision/prototype/transforms \
--cov-report=term-missing \
test/test_prototype_transforms*.py
-
name
:
Run prototype models tests
if
:
success() || ( failure() && steps.setup.conclusion == 'success' )
shell
:
bash
run
:
|
pytest \
--durations=20 \
--cov=torchvision/prototype/models \
--cov-report=term-missing \
test/test_prototype_models*.py
test/test_prototype_transforms_functional.py
View file @
5421f12a
...
...
@@ -174,10 +174,7 @@ class TestKernels:
output_cpu
=
info
.
kernel
(
input_cpu
,
*
other_args
,
**
kwargs
)
output_cuda
=
info
.
kernel
(
input_cuda
,
*
other_args
,
**
kwargs
)
try
:
assert_close
(
output_cuda
,
output_cpu
,
check_device
=
False
,
**
info
.
closeness_kwargs
)
except
AssertionError
:
pytest
.
xfail
(
"CUDA vs CPU tolerance issue to be fixed"
)
assert_close
(
output_cuda
,
output_cpu
,
check_device
=
False
,
**
info
.
closeness_kwargs
)
@
sample_inputs
@
pytest
.
mark
.
parametrize
(
"device"
,
cpu_and_gpu
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment