8000 Format code · pytorch/pytorch@2991664 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2991664

Browse files
committed
Format code
1 parent 45cf0d1 commit 2991664

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

caffe2/serialize/in_memory_adapter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22
#include <caffe2/serialize/read_adapter_interface.h>
3+
#include <sys/types.h>
34
#include <cstdint>
45
#include <cstring>
5-
#include <sys/types.h>
66

77
namespace caffe2::serialize {
88

caffe2/serialize/inline_container.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ size_t PyTorchStreamReader::getRecordMultiReaders(
400400
}
401401
readSizes[i] = size;
402402
LOG(INFO) << "Thread " << i << " read [" << startPos << "-" << endPos
403-
<< "] " << "from " << name << " of size " << n;
403+
<< "] "
404+
<< "from " << name << " of size " << n;
404405
TORCH_CHECK(
405406
threadReadSize == size,
406407
"record size ",
@@ -697,7 +698,7 @@ void PyTorchStreamWriter::setup(const string& file_name) {
697698

698699
const std::string dir_name = parentdir(file_name);
699700
if (!dir_name.empty()) {
700-
struct stat st{};
701+
struct stat st {};
701702
bool dir_exists =
702703
(stat(dir_name.c_str(), &st) == 0 && (st.st_mode & S_IFDIR));
703704
TORCH_CHECK(

0 commit comments

Comments
 (0)
0