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

Method DumpTensorToEventFile

tensorflow/core/debug/debug_io_utils.cc:646–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646Status DebugFileIO::DumpTensorToEventFile(const DebugNodeKey& debug_node_key,
647 const Tensor& tensor,
648 const uint64 wall_time_us,
649 const string& file_path) {
650 std::vector<Event> events;
651 TF_RETURN_IF_ERROR(
652 WrapTensorAsEvents(debug_node_key, tensor, wall_time_us, 0, &events));
653 return DumpEventProtoToFile(events[0], string(io::Dirname(file_path)),
654 string(io::Basename(file_path)));
655}
656
657Status DebugFileIO::RecursiveCreateDir(Env* env, const string& dir) {
658 if (env->FileExists(dir).ok() && env->IsDirectory(dir).ok()) {

Callers

nothing calls this directly

Calls 3

WrapTensorAsEventsFunction · 0.85
DirnameFunction · 0.85
BasenameFunction · 0.85

Tested by

no test coverage detected