Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sontallive/TensorBoardThread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

No releases published

Packages

No packages published

Languages