MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / LocalFS

Function LocalFS

oneflow/core/persistence/file_system.cpp:187–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187fs::FileSystem* LocalFS() {
188 static std::unique_ptr<fs::FileSystem> local_fs;
189 static std::mutex local_fs_mutex;
190 {
191 std::lock_guard<std::mutex> lock(local_fs_mutex);
192 if (!local_fs) { CreateLocalFS(local_fs); }
193 }
194 return local_fs.get();
195}
196
197} // namespace oneflow

Callers 4

InitLoggingFunction · 0.85
CopyToLocalFinishMethod · 0.85

Calls 2

CreateLocalFSFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected