Skip to content

Instantly share code, notes, and snippets.

@tldrafael
Created January 8, 2025 21:40
Show Gist options
  • Save tldrafael/5786628185d44f289257954bb2c32297 to your computer and use it in GitHub Desktop.
Save tldrafael/5786628185d44f289257954bb2c32297 to your computer and use it in GitHub Desktop.
Tensorboard-logdir script
echo -e "\n\n"
TB_ARG=''
i=1
for letter in {a..z}; do
if [ $i -lt $(($#+1)) ]; then
line="${letter}:${!i}"
echo -e $line
TB_ARG+="${line}/logs,"
i=$((i+1))
else
break
fi
done
echo -e "\n\n"
tensorboard --port=6004 --logdir_spec=${TB_ARG::-1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment