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

Function _trace_files_need_precreated

tensorflow/python/tpu/tensor_tracer.py:186–201  ·  view source on GitHub ↗

Return True if trace files must be pre-created by users.

(output_dir)

Source from the content-addressed store, hash-verified

184
185
186def _trace_files_need_precreated(output_dir):
187 """Return True if trace files must be pre-created by users."""
188
189 if not output_dir.startswith('/'):
190 return False
191 if len(output_dir) < 5:
192 return False
193 if output_dir[2] != 'n':
194 return False
195 if output_dir[3] != 's':
196 return False
197 if output_dir[1] != 'c':
198 return False
199 if output_dir[4] != '/':
200 return False
201 return True
202
203
204class TensorTracer(object):

Callers 2

_check_trace_filesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected