Skip to content

Instantly share code, notes, and snippets.

@obeshor
Created February 20, 2021 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obeshor/2cbfde406b6d6443e8eb1e1dfa3ca399 to your computer and use it in GitHub Desktop.
Save obeshor/2cbfde406b6d6443e8eb1e1dfa3ca399 to your computer and use it in GitHub Desktop.
def run(run_dir, hparams):
with tf.summary.create_file_writer(run_dir).as_default():
hp.hparams(hparams) # record the values used in this trial
accuracy = model_builder_HPARAMS(hparams)
tf.summary.scalar(METRIC_ACCURACY, accuracy, step=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment