Created
August 20, 2021 04:07
-
-
Save Gclabbe/e93381da0466230cf9579ee89b7db2ad to your computer and use it in GitHub Desktop.
Small code to fix directory issues in Week 3 assignment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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