Editing
Tutorials:Monitoring with Tensorboard on the GPU cluster
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Logging to Tensorboard from within your container == In your job file, make sure both PVC are mounted to the container. We use "/mnt/tensorboard" as the mount point for the tensorboard log directory. <syntaxhighlight lang="yaml"> ... containers: - name: your-username-tf-mnist-tb volumeMounts: - mountPath: "/tmp/data" name: pvc-mnist - mountPath: "/mnt/tensorboard" name: pvc-mnist-tb ... volumes: - name: pvc-mnist persistentVolumeClaim: claimName: test-user-tf-mnist-pvc - name: pvc-mnist-tb persistentVolumeClaim: claimName: test-user-tf-mnist-tb-pvc ... </syntaxhighlight> We will not cover the details of Tensorboard logging here, see the example code in "application/src/tf_mnist.py" for some initial ideas. Make sure to provide the correct log directory when creating the writer instance for the logs. I suggest to create a new subdirectory for each run of the program and hold the PVC, so that you can compare different runs, like this: <syntaxhighlight lang="python"> from datetime import datetime tb_base_directory = "/mnt/tensorboard/" now = datetime.now() subdir = now.strftime("%Y%m%d-%H%M%S") tb_out_directory = tb_base_directory + subdir writer = tf.summary.FileWriter( tb_out_directory, sess.graph ) </syntaxhighlight> Otherwise, please refer to some of the excellent online tutorials on Tensorboard, e.g. [https://itnext.io/how-to-use-tensorboard-5d82f8654496 this here].
Summary:
Please note that all contributions to Collective Computational Unit may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
CCU:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Collective Computational Unit
Main page
Projects
Tutorials
GPU Cluster
Core Facilitys
Mediawiki
Recent changes
Random page
Help
Tools
What links here
Related changes
Page information