TensorBoard provides great visualization tools to understand, debug, and optimize your code.  

In Onepanel, you can use the built-in TensorBoard by saving your TensorFlow and Pytorch logs (using tensorboardx ) in the /onepanel/output  directory.

You can then view your visualizations by clicking the "TensorBoard" button:

TensorFlow and Keras Example

import tensorflow as tf

# Log TensorBoard event files into `/onepanel/output`
tensorboard = tf.keras.callbacks.TensorBoard(log_dir='/onepanel/output', batch_size=32, write_images=True)

# Model code here...

See example code that you can run in Onepanel

Pytorch Example with TensorboardX

from tensorboardX import SummaryWriter

writer = SummaryWriter('/onepanel/output')

# Write Scalar to TensorBoard
writer.add_scalar('Train/Loss', loss, iteration)

See example code that you can run in Onepanel

Did this answer your question?