Skip to content

Commit fddb680

Browse files
authored
Merge branch 'main' into patch-1
2 parents f3ccb91 + 35677ec commit fddb680

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/test_datasets_download.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ def url_parametrization(*dataset_urls_and_ids_fns):
368368
kinetics,
369369
kitti,
370370
places365,
371+
sbu,
371372
)
372373
def test_url_is_accessible(url):
373374
"""
@@ -379,7 +380,6 @@ def test_url_is_accessible(url):
379380

380381
@url_parametrization(
381382
stanford_cars, # https://github.com/pytorch/vision/issues/7545
382-
sbu, # https://github.com/pytorch/vision/issues/7964
383383
)
384384
@pytest.mark.xfail
385385
def test_url_is_not_accessible(url):

test/test_onnx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def to_numpy(tensor):
7979
inputs = list(map(to_numpy, inputs))
8080
outputs = list(map(to_numpy, outputs))
8181

82-
ort_session = onnxruntime.InferenceSession(onnx_io.getvalue())
82+
ort_session = onnxruntime.InferenceSession(onnx_io.getvalue(), providers=onnxruntime.get_available_providers())
8383
# compute onnxruntime output prediction
8484
ort_inputs = {ort_session.get_inputs()[i].name: inpt for i, inpt in enumerate(inputs)}
8585
ort_outs = ort_session.run(None, ort_inputs)

torchvision/transforms/functional.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ def erase(img: Tensor, i: int, j: int, h: int, w: int, v: Tensor, inplace: bool
13261326
def gaussian_blur(img: Tensor, kernel_size: List[int], sigma: Optional[List[float]] = None) -> Tensor:
13271327
"""Performs Gaussian blurring on the image by given kernel.
13281328
If the image is torch Tensor, it is expected
1329-
to have [..., H, W] shape, where ... means an arbitrary number of leading dimensions.
1329+
to have [..., H, W] shape, where ... means at most one leading dimension.
13301330
13311331
Args:
13321332
img (PIL Image or Tensor): Image to be blurred

torchvision/transforms/transforms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ def __repr__(self) -> str:
17601760
class GaussianBlur(torch.nn.Module):
17611761
"""Blurs image with randomly chosen Gaussian blur.
17621762
If the image is torch Tensor, it is expected
1763-
to have [..., C, H, W] shape, where ... means an arbitrary number of leading dimensions.
1763+
to have [..., C, H, W] shape, where ... means at most one leading dimension.
17641764
17651765
Args:
17661766
kernel_size (int or sequence): Size of the Gaussian kernel.

0 commit comments

Comments
 (0)