Skip to content

Instantly share code, notes, and snippets.

@zubair-irshad
Created November 9, 2020 20:37
Show Gist options
  • Save zubair-irshad/841d79cf33bbe60e57e3b3c470b76d4f to your computer and use it in GitHub Desktop.
Save zubair-irshad/841d79cf33bbe60e57e3b3c470b76d4f to your computer and use it in GitHub Desktop.
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=FutureWarning)
import tensorflow as tf
# WandB – Login to your wandb account so you can log all your metrics
wandb.login()
wandb.init(project="hierarchical_cma", sync_tensorboard=True)
wb_config = wandb.config
wb_config.LR = 1e-4
wb_config.EPOCHS = 20
wb_config.BATCH_SIZE = 1
with TensorboardWriter(
wandb.run.dir, flush_secs=self.flush_secs, purge_step=0
) as writer:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment