Every line of 'modelcheckpoint' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
9 def get_checkpoint(logdir): 10 ''' Get the first checkpoint ''' 11 ckpt = tf.train.get_checkpoint_state(logdir) 12 if ckpt: 13 return ckpt.model_checkpoint_path 14 else: 15 print('No checkpoint found') 16 return None