MCPcopy
hub / github.com/ibab/tensorflow-wavenet / save

Function save

train.py:109–119  ·  view source on GitHub ↗
(saver, sess, logdir, step)

Source from the content-addressed store, hash-verified

107
108
109def save(saver, sess, logdir, step):
110 model_name = 'model.ckpt'
111 checkpoint_path = os.path.join(logdir, model_name)
112 print('Storing checkpoint to {} ...'.format(logdir), end="")
113 sys.stdout.flush()
114
115 if not os.path.exists(logdir):
116 os.makedirs(logdir)
117
118 saver.save(sess, checkpoint_path, global_step=step)
119 print(' Done.')
120
121
122def load(saver, sess, logdir):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected