简体   繁体   English

如何用 Tensorflow2 (jupyter, Win) 杀死 tensorboard

[英]How to kill tensorboard with Tensorflow2 (jupyter, Win)

sorry for the noob question, but how do I kill the Tensorflow PID?很抱歉这个菜鸟问题,但是我该如何杀死 Tensorflow PID?

It says:它说:

Reusing TensorBoard on port 6006 (pid 5128), started 4 days, 18:03:12 ago. (Use '.kill 5128' to kill it.)

But I can not find any PID 5128 in the windows taks manager.但是我在 windows 任务管理器中找不到任何 PID 5128。 Using '.kill 5128' within jupyter the error returns that comand kill cannot be found.在 jupyter 中使用 '.kill 5128' 会返回无法找到命令 kill 的错误。 Using it in the Windows cmd or conda cmd does not work either.在 Windows cmd 或 conda cmd 中使用它也不起作用。

Thanks for your help.谢谢你的帮助。

如果您清除AppData/Local/Temp/.tensorboard-info ,并删除您的日志,您应该可以重新开始

In Windows cmd type tasklist | more在 Windows cmd 中输入tasklist | more tasklist | more It will display all the process running in the system and find tensorboard.exe tasklist | more会显示系统中运行的所有进程并找到tensorboard.exe 在此处输入图片说明

You can kill the process using the process ID您可以使用进程 ID 终止进程

taskkill /F /PID 20036

you can kill the process by its name您可以按名称终止进程

taskkill /IM "tensorboard.exe" /F

I am using docker image.我正在使用 docker 图片。 There was a case where the same error occurred even though the tensorboard process was already killed.有一种情况,即使 tensorboard 进程已经被杀死,也会发生同样的错误。 In that case, if you are using the jupyterlab docker image, just delete the files in /tmp/tensorboard-info path.在这种情况下,如果您使用的是 jupyterlab docker 图像,只需删除/tmp/tensorboard-info路径中的文件即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM