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

# TensorBoard

## 默认打开方式

AutoDL实例中已内置TensorBoard工具，您只需将tensorboard的event文件保存到/root/tf-logs/路径（如果您希望使用其他的logs文件夹，请看下方切换目录），或者将保存到其他路径的event文件拷贝到该路径下，然后使用tensorboard。

开机实例后，找到AutoPanel访问入口：

![image-20220401160510193](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/best_practices/tools/tensorboard/image-20220401160510193.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=a75b8acb92d5e8d24f91415e636519ea)

![image-20220401160536804](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/best_practices/tools/tensorboard/image-20220401160536804.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=9d008b23c8fde8253e88e928b3a40942)

## 切换tf logs目录

如果您希望使用其他的logs目录，那么你可以手动再启动一个TensorBoard：

```
首先结束默认启动的TensorBoard进程，执行命令：ps -ef | grep tensorboard | awk '{print $2}' | xargs kill -9 
在终端中执行以下命令启动TensorBoard
$ tensorboard --port 6007 --logdir /path/to/your/tf-logs/direction
```

启动后重新在AutoPanel中访问TensorBoard即可。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.