tbCallBack = tf.keras.callbacks.TensorBoard(log_dir='./log' , histogram_freq=0, write_graph=True, write_images=True) model.fit(x=x_train , y=y_train , epochs=20 , callbacks=[tbCallBack])
許久不用tensorflow,發現keras的代碼組織方式更直觀。spa
記錄下keras下tensorboard的使用。code
tensorboart --logdir ./logblog
默認端口6006it