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

Function ParseInputFile

tensorflow/compiler/xla/tools/replay_computation.cc:417–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417StatusOr<std::vector<HloSnapshot>> ParseInputFile(const string& filename,
418 const Options& opts) {
419 std::vector<HloSnapshot> snapshots;
420 absl::string_view filename_view = filename;
421 if (absl::ConsumePrefix(&filename_view, "recordio_hlo_proto:")) {
422 return ParseRecordIoFile(filename_view, opts);
423 }
424 TF_ASSIGN_OR_RETURN(auto snapshot, ParseSingleHloFile(filename, opts));
425 return std::vector<HloSnapshot>{std::move(snapshot)};
426}
427
428int RealMain(absl::Span<char* const> args, const Options& opts) {
429 LocalClient* client = ClientLibrary::LocalClientOrDie();

Callers 1

RealMainFunction · 0.85

Calls 2

ParseRecordIoFileFunction · 0.85
ConsumePrefixFunction · 0.50

Tested by

no test coverage detected