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

Method _dump_file

tensorflow/python/profiler/profile_context.py:305–309  ·  view source on GitHub ↗
(self, pb, basename)

Source from the content-addressed store, hash-verified

303 self.profiler._write_profile(filename) # pylint: disable=protected-access
304
305 def _dump_file(self, pb, basename):
306 if not gfile.Exists(self._profiler_dir):
307 gfile.MakeDirs(self._profiler_dir)
308 with gfile.Open(os.path.join(self._profiler_dir, basename), 'w') as f:
309 f.write('%s' % pb)
310
311 @contextlib.contextmanager
312 def _new_step(self):

Callers 1

_profiled_runFunction · 0.80

Calls 4

ExistsMethod · 0.45
OpenMethod · 0.45
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected