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

Function MatchFiles

tensorflow/core/kernels/record_yielder.cc:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84static Status MatchFiles(const string& patterns,
85 std::vector<string>* filenames) {
86 for (const auto& file_pattern : str_util::Split(patterns, ',')) {
87 std::vector<string> tmp_filenames;
88 TF_RETURN_IF_ERROR(
89 Env::Default()->GetMatchingPaths(file_pattern, &tmp_filenames));
90 filenames->insert(filenames->end(),
91 std::make_move_iterator(tmp_filenames.begin()),
92 std::make_move_iterator(tmp_filenames.end()));
93 }
94 return Status::OK();
95}
96
97void RecordYielder::MainLoop() {
98 while (true) {

Callers 1

MainLoopMethod · 0.85

Calls 6

DefaultFunction · 0.85
SplitClass · 0.70
GetMatchingPathsMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected