Skip to content

Commit a77b37c

Browse files
authored
Fix clang-format (#8754)
1 parent 518ee93 commit a77b37c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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;

0 commit comments

Comments
 (0)