Skip to content

Commit

Permalink
Fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Nov 26, 2024
1 parent 726b0cb commit a2ecc20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit a2ecc20

Please sign in to comment.