Skip to content

Commit

Permalink
Add hooks to the training code
Browse files Browse the repository at this point in the history
WIP (#3)

* The NanTensorHook is still missing.
  • Loading branch information
yweweler committed Nov 28, 2018
1 parent 5ad81cc commit 9e9fb60
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tacotron/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,15 @@ def main(_):
)
)

# TODO: Add support for the NanTensorHook.
config = tf.estimator.RunConfig(
model_dir=checkpoint_dir,
session_config=session_config
session_config=session_config,
save_summary_steps=training_params.summary_save_steps,
save_checkpoints_steps=training_params.checkpoint_save_steps,
keep_checkpoint_max=training_params.checkpoints_to_keep,
log_step_count_steps=training_params.performance_log_steps,
train_distribute=None
)

model = Tacotron(training_summary=training_params.write_summary)
Expand Down

0 comments on commit 9e9fb60

Please sign in to comment.