diff --git a/torchvision/csrc/io/decoder/memory_buffer.cpp b/torchvision/csrc/io/decoder/memory_buffer.cpp index 4e420c3b3cd..8cf14c42b63 100644 --- a/torchvision/csrc/io/decoder/memory_buffer.cpp +++ b/torchvision/csrc/io/decoder/memory_buffer.cpp @@ -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); diff --git a/torchvision/csrc/io/decoder/sync_decoder_test.cpp b/torchvision/csrc/io/decoder/sync_decoder_test.cpp index 980725c2fcb..e668090e100 100644 --- a/torchvision/csrc/io/decoder/sync_decoder_test.cpp +++ b/torchvision/csrc/io/decoder/sync_decoder_test.cpp @@ -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); @@ -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); diff --git a/torchvision/csrc/io/image/cpu/encode_jpeg.cpp b/torchvision/csrc/io/image/cpu/encode_jpeg.cpp index d2ed73071a2..67ca424560f 100644 --- a/torchvision/csrc/io/image/cpu/encode_jpeg.cpp +++ b/torchvision/csrc/io/image/cpu/encode_jpeg.cpp @@ -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;