| 644 | } |
| 645 | |
| 646 | Status 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 | |
| 657 | Status DebugFileIO::RecursiveCreateDir(Env* env, const string& dir) { |
| 658 | if (env->FileExists(dir).ok() && env->IsDirectory(dir).ok()) { |
nothing calls this directly
no test coverage detected