## 텐서 보드 생성.
from tensorboardcolab import *
from datetime import datetime
current_time = str(datetime.now().timestamp())
train_log_dir = 'logs/tensorboard/train/' + current_time
tbc = TensorBoardColab(graph_path = train_log_dir) # To create a tensorboardcolab object it will automatically creat a link
writer = tbc.get_writer() # To create a FileWriter
writer.add_graph(tf.get_default_graph()) # add the graph
writer.flush()
//매직 펑션 활용
## 텐서 보드 생성.
from tensorboardcolab import *
%load_ext tensorboard
%tensorboard --logdir logs/tensorboard
'Python Library > TensorFlow' 카테고리의 다른 글
Keras Custom model with two Input (0) | 2019.08.20 |
---|---|
How To Convert Keras Model To .Pb format Example (0) | 2019.08.18 |
how to off Learning_phase for dropout and batch_norm when export .pb (0) | 2019.08.18 |
How to Freeze Variables to Export keras model as .pb - 2 (0) | 2019.08.18 |
How to Freeze Variables to Export keras model as .pb - 1 (0) | 2019.08.18 |