Skip to content

Instantly share code, notes, and snippets.

@Gclabbe
Created August 20, 2021 04:07
Show Gist options
  • Save Gclabbe/e93381da0466230cf9579ee89b7db2ad to your computer and use it in GitHub Desktop.
Save Gclabbe/e93381da0466230cf9579ee89b7db2ad to your computer and use it in GitHub Desktop.
Small code to fix directory issues in Week 3 assignment
windoze = True
tb_base = '\\project-tensorboard\\' if windoze else '/project-tensorboard/'
tb_log = 'log-1'
# Path to save the embedding and checkpoints generated
try:
os.mkdir(PATH + tb_base)
except:
pass
try:
LOG_DIR = PATH + tb_base + tb_log
os.mkdir(LOG_DIR)
except:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment