MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / main

Function main

tensorboard/scripts/generate_testdata.py:220–237  ·  view source on GitHub ↗
(unused_argv=None)

Source from the content-addressed store, hash-verified

218
219
220def main(unused_argv=None):
221 target = FLAGS.target
222 if not target:
223 print("The --target flag is required.")
224 return -1
225 if os.path.exists(target):
226 if FLAGS.overwrite:
227 if os.path.isdir(target):
228 shutil.rmtree(target)
229 else:
230 os.remove(target)
231 else:
232 print(
233 "Refusing to overwrite target %s without --overwrite" % target
234 )
235 return -2
236 GenerateTestData(target)
237 return 0
238
239
240if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

GenerateTestDataFunction · 0.85
existsMethod · 0.45
isdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…