Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ jobs:
executor:
name: windows-gpu
environment:
CUDA_VERSION: "11.1"
CUDA_VERSION: "11.3"
PYTHON_VERSION: << parameters.python_version >>
steps:
- checkout
Expand Down
3 changes: 2 additions & 1 deletion .circleci/unittest/windows/scripts/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ dependencies:
- libpng
- jpeg
- ca-certificates
- h5py
- hdf5
- pip:
- future
- pillow >=5.3.0, !=8.3.*
- scipy
- av
- dataclasses
- h5py
2 changes: 1 addition & 1 deletion .circleci/unittest/windows/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ else
fi

printf "Installing PyTorch with %s\n" "${cudatoolkit}"
conda install -y -c "pytorch-${UPLOAD_CHANNEL}" -c conda-forge "pytorch-${UPLOAD_CHANNEL}"::pytorch[build="*${version}*"] "${cudatoolkit}" pytest
conda install -y -c "pytorch-${UPLOAD_CHANNEL}" -c nvidia "pytorch-${UPLOAD_CHANNEL}"::pytorch[build="*${version}*"] "${cudatoolkit}" pytest

torch_cuda=$(python -c "import torch; print(torch.cuda.is_available())")
echo torch.cuda.is_available is $torch_cuda
Expand Down
12 changes: 12 additions & 0 deletions test/test_transforms_tensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

import numpy as np
import pytest
Expand Down Expand Up @@ -927,6 +928,17 @@ def test_random_apply(device):
)
@pytest.mark.parametrize("channels", [1, 3])
def test_gaussian_blur(device, channels, meth_kwargs):
if all(
[
device == "cuda",
channels == 1,
meth_kwargs["kernel_size"] in [23, [23]],
torch.version.cuda == "11.3",
sys.platform in ("win32", "cygwin"),
]
):
pytest.skip("Fails on Windows, see https://github.com/pytorch/vision/issues/5464")

tol = 1.0 + 1e-10
torch.manual_seed(12)
_test_class_op(
Expand Down