Skip to content

Commit 77efed1

Browse files
authored
Merge branch 'main' into rdong8/fix-webp-avif
2 parents ceff0b1 + 48b2f9f commit 77efed1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ versions.
2020

2121
| `torch` | `torchvision` | Python |
2222
| ------------------ | ------------------ | ------------------- |
23-
| `main` / `nightly` | `main` / `nightly` | `>=3.9`, `<=3.12` |
23+
| `main` / `nightly` | `main` / `nightly` | `>=3.10`, `<=3.13` |
2424
| `2.8` | `0.23` | `>=3.9`, `<=3.13` |
2525
| `2.7` | `0.22` | `>=3.9`, `<=3.13` |
2626
| `2.6` | `0.21` | `>=3.9`, `<=3.12` |

torchvision/csrc/io/decoder/audio_sampler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool AudioSampler::init(const SamplerParameters& params) {
5454
AVChannelLayout channel_in;
5555
av_channel_layout_default(&channel_out, params.out.audio.channels);
5656
av_channel_layout_default(&channel_in, params.in.audio.channels);
57-
int ret = swr_alloc_set_opts2(
57+
swr_alloc_set_opts2(
5858
&swrContext_,
5959
&channel_out,
6060
(AVSampleFormat)params.out.audio.format,

torchvision/transforms/v2/functional/_geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def _do_native_uint8_resize_on_cpu(interpolation: InterpolationMode) -> bool:
261261
if torch.compiler.is_compiling():
262262
return True
263263
else:
264-
return "AVX2" in torch.backends.cpu.get_cpu_capability()
264+
return torch.backends.cpu.get_cpu_capability() in ("AVX2", "AVX512")
265265

266266
return interpolation == InterpolationMode.BICUBIC
267267

0 commit comments

Comments
 (0)