MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MaybeSavedModelDirectory

Function MaybeSavedModelDirectory

tensorflow/cc/saved_model/loader.cc:513–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513bool MaybeSavedModelDirectory(const string& export_dir) {
514 const string saved_model_pb_path =
515 io::JoinPath(export_dir, kSavedModelFilenamePb);
516 const string saved_model_pbtxt_path =
517 io::JoinPath(export_dir, kSavedModelFilenamePbTxt);
518 return Env::Default()->FileExists(saved_model_pb_path).ok() ||
519 Env::Default()->FileExists(saved_model_pbtxt_path).ok();
520}
521
522} // namespace tensorflow

Callers 2

TEST_FFunction · 0.85

Calls 4

DefaultFunction · 0.85
JoinPathFunction · 0.50
okMethod · 0.45
FileExistsMethod · 0.45

Tested by 1

TEST_FFunction · 0.68