Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sontallive/TensorBoardThread

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 

Repository files navigation

Run tensorboard in codes

how to use

from code_tensorboard import TensorBoardThread
import threading

tb_port = 6006
tb_host = 'localhost'
while True:
    signal = threading.Event()
    tb_thread = TensorBoardThread(signal, tb_path, tb_port)
    tb_thread.start()
    signal.wait()
    if tb_thread.wrong:
        tb_thread.terminate()
        tb_port += 1

print("http://{}:{}".format(tb_host, tb_port))

using this signal to wait, so you can use the url as soon as the start of tensorboard.

About

run tensorboard in your code, and you can stop it freely.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.