> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gpuhub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TensorBoard

> TensorFlow is a software library for machine learning and artificial intelligence.

<img src="https://mintcdn.com/gpuhub/r1V0ko0l9sh4RwWM/images/logo-tensorboard.png?fit=max&auto=format&n=r1V0ko0l9sh4RwWM&q=85&s=d94b6b3d880245cf4fbab84f92092827" alt="" width="64" height="64" data-path="images/logo-tensorboard.png" />

The instance on GPUhub comes pre-installed with the TensorBoard tool. You just need to save the TensorBoard event files to the /root/tf-logs/ directory (if you wish to use a different logs folder, see the section below on changing directories), or copy the event files saved in another path to this directory, and then use TensorBoard.

## Default Access Method

After powering on the instance, locate the access entry for AutoPanel:

<img src="https://mintcdn.com/gpuhub/yLmjMPcqL-OhC9CD/images/bestpractices-tensorboard-autopannel.png?fit=max&auto=format&n=yLmjMPcqL-OhC9CD&q=85&s=79aea5a484f5b882f1a9bfb420ef7592" alt="" width="1724" height="436" data-path="images/bestpractices-tensorboard-autopannel.png" />

<img src="https://mintcdn.com/gpuhub/yLmjMPcqL-OhC9CD/images/bestpractices-tensorboard-autopannel-pre.png?fit=max&auto=format&n=yLmjMPcqL-OhC9CD&q=85&s=5533ddf966877887f9f5e1bffc091f3e" alt="" width="1677" height="807" data-path="images/bestpractices-tensorboard-autopannel-pre.png" />

## Switch TensorFlow Logs Directory

If you wish to use a different logs directory, you can manually start another instance of TensorBoard:
First, terminate the default TensorBoard process by executing the command:

```bash bash theme={null}
ps -ef | grep tensorboard | awk '{print $2}' | xargs kill -9
```

Then, run the following command in the terminal to start TensorBoard:

```bash bash theme={null}
tensorboard --port 6007 --logdir /path/to/your/tf-logs/directory
```

After starting, you can access TensorBoard again through AutoPanel.
