print(" Batch: {}/{}".format(batch, batches), end=" ")
res = sess.run(opt_operations)
global_step = res["global_step"]
print("Cost:", res["cost"], "Global step", global_step, )
summary_writer.add_summary(res["summary"], global_step)
// Save the variables to disk
save_path = saver.save(sess, checkpoint_paths, global_step)
After Change
print_log("Batch: {}/{}".format(batch, batches), run_id)
res = sess.run(opt_operations)
global_step = res["global_step"]
print_log("Cost: {} Global step: {}"
.format(res["cost"], global_step), run_id)
summary_writer.add_summary(res["summary"], global_step)
// Save the variables to disk