Skip to content

Commit

Permalink
2024-11-27 nightly release (b33aef4)
Browse files Browse the repository at this point in the history
  • Loading branch information
pytorchbot committed Nov 27, 2024
1 parent 77a314a commit 83e4bcc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
script: |
set -euo pipefail
export PYTHON_VERSION=3.9
export PYTHON_VERSION=3.11
export GPU_ARCH_TYPE=cpu
export GPU_ARCH_VERSION=''
Expand All @@ -83,7 +83,7 @@ jobs:
conda activate ci
echo '::group::Install lint tools'
pip install --progress-bar=off mypy
pip install --progress-bar=off "mypy==1.13.0"
echo '::endgroup::'
echo '::group::Lint Python types'
Expand Down
2 changes: 1 addition & 1 deletion torchvision/csrc/io/decoder/memory_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ DecoderInCallback MemoryBuffer::getCallback(
MemoryBuffer object(buffer, size);
return
[object](uint8_t* out, int size, int whence, uint64_t timeoutMs) mutable
-> int {
-> int {
if (out) { // see defs.h file
// read mode
return object.read(out, size);
Expand Down
4 changes: 2 additions & 2 deletions torchvision/csrc/io/decoder/sync_decoder_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ TEST(SyncDecoder, TestMemoryBufferNoSeekableWithFullRead) {
CHECK(decoder.init(
params,
[object](uint8_t* out, int size, int whence, uint64_t timeoutMs) mutable
-> int {
-> int {
if (out) { // see defs.h file
// read mode
return object.read(out, size);
Expand Down Expand Up @@ -401,7 +401,7 @@ TEST(SyncDecoder, TestMemoryBufferNoSeekableWithPartialRead) {
CHECK(!decoder.init(
params,
[object](uint8_t* out, int size, int whence, uint64_t timeoutMs) mutable
-> int {
-> int {
if (out) { // see defs.h file
// read mode
return object.read(out, size);
Expand Down
4 changes: 2 additions & 2 deletions torchvision/csrc/io/image/cpu/encode_jpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ torch::Tensor encode_jpeg(const torch::Tensor& data, int64_t quality) {
C10_LOG_API_USAGE_ONCE(
"torchvision.csrc.io.image.cpu.encode_jpeg.encode_jpeg");
// Define compression structures and error handling
struct jpeg_compress_struct cinfo {};
struct torch_jpeg_error_mgr jerr {};
struct jpeg_compress_struct cinfo{};
struct torch_jpeg_error_mgr jerr{};

// Define buffer to write JPEG information to and its size
JpegSizeType jpegSize = 0;
Expand Down
2 changes: 1 addition & 1 deletion torchvision/models/maxvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def __init__(
p_stochastic=p_stochastic[p_idx : p_idx + num_layers],
),
)
input_size = self.blocks[-1].grid_size
input_size = self.blocks[-1].grid_size # type: ignore[assignment]
p_idx += num_layers

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

0 comments on commit 83e4bcc

Please sign in to comment.