python - Tensorflow : how to get a list of checkpoints -


i need programatically list of existing checkpoints not rely on directory listing , file exension validation, if type:

tf.train.get_checkpoint_state('checkpoints') 

you can see printed list, cant find way capture printed list can iterated later , there way this?

there checkpoint file under tf.saver() specified python, contains last n available checkpoints file, such as:

model_checkpoint_path: "model.ckpt-43083927" all_model_checkpoint_paths: "model.ckpt-43083669" all_model_checkpoint_paths: "model.ckpt-43083764" all_model_checkpoint_paths: "model.ckpt-43083925" all_model_checkpoint_paths: "model.ckpt-43083926" all_model_checkpoint_paths: "model.ckpt-43083927" 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -