Skip to content

Commit 83e4bcc

Browse files
author
pytorchbot
committed
2024-11-27 nightly release (b33aef4)
1 parent 77a314a commit 83e4bcc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
script: |
7373
set -euo pipefail
7474
75-
export PYTHON_VERSION=3.9
75+
export PYTHON_VERSION=3.11
7676
export GPU_ARCH_TYPE=cpu
7777
export GPU_ARCH_VERSION=''
7878
@@ -83,7 +83,7 @@ jobs:
8383
conda activate ci
8484
8585
echo '::group::Install lint tools'
86-
pip install --progress-bar=off mypy
86+
pip install --progress-bar=off "mypy==1.13.0"
8787
echo '::endgroup::'
8888
8989
echo '::group::Lint Python types'

torchvision/csrc/io/decoder/memory_buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ DecoderInCallback MemoryBuffer::getCallback(
5454
MemoryBuffer object(buffer, size);
5555
return
5656
[object](uint8_t* out, int size, int whence, uint64_t timeoutMs) mutable
57-
-> int {
57+
-> int {
5858
if (out) { // see defs.h file
5959
// read mode
6060
return object.read(out, size);

torchvision/csrc/io/decoder/sync_decoder_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ TEST(SyncDecoder, TestMemoryBufferNoSeekableWithFullRead) {
361361
CHECK(decoder.init(
362362
params,
363363
[object](uint8_t* out, int size, int whence, uint64_t timeoutMs) mutable
364-
-> int {
364+
-> int {
365365
if (out) { // see defs.h file
366366
// read mode
367367
return object.read(out, size);
@@ -401,7 +401,7 @@ TEST(SyncDecoder, TestMemoryBufferNoSeekableWithPartialRead) {
401401
CHECK(!decoder.init(
402402
params,
403403
[object](uint8_t* out, int size, int whence, uint64_t timeoutMs) mutable
404-
-> int {
404+
-> int {
405405
if (out) { // see defs.h file
406406
// read mode
407407
return object.read(out, size);

torchvision/csrc/io/image/cpu/encode_jpeg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ torch::Tensor encode_jpeg(const torch::Tensor& data, int64_t quality) {
2828
C10_LOG_API_USAGE_ONCE(
2929
"torchvision.csrc.io.image.cpu.encode_jpeg.encode_jpeg");
3030
// Define compression structures and error handling
31-
struct jpeg_compress_struct cinfo {};
32-
struct torch_jpeg_error_mgr jerr {};
31+
struct jpeg_compress_struct cinfo{};
32+
struct torch_jpeg_error_mgr jerr{};
3333

3434
// Define buffer to write JPEG information to and its size
3535
JpegSizeType jpegSize = 0;

torchvision/models/maxvit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def __init__(
688688
p_stochastic=p_stochastic[p_idx : p_idx + num_layers],
689689
),
690690
)
691-
input_size = self.blocks[-1].grid_size
691+
input_size = self.blocks[-1].grid_size # type: ignore[assignment]
692692
p_idx += num_layers
693693

694694
# see https://github.com/google-research/maxvit/blob/da76cf0d8a6ec668cc31b399c4126186da7da944/maxvit/models/maxvit.py#L1137-L1158

0 commit comments

Comments
 (0)