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

Function apply_clean

tensorflow/examples/tf2_showcase/mnist.py:247–251  ·  view source on GitHub ↗
(flags_obj)

Source from the content-addressed store, hash-verified

245
246
247def apply_clean(flags_obj):
248 if flags_obj.clean and tf.gfile.Exists(flags_obj.model_dir):
249 tf.logging.info('--clean flag set. Removing existing model dir: {}'.format(
250 flags_obj.model_dir))
251 tf.gfile.DeleteRecursively(flags_obj.model_dir)
252
253
254def main(_):

Callers 1

mainFunction · 0.85

Calls 4

infoMethod · 0.80
ExistsMethod · 0.45
formatMethod · 0.45
DeleteRecursivelyMethod · 0.45

Tested by

no test coverage detected