tf.scalar_summary("loss", cost)
tf.scalar_summary("accuracy", acc)
merged_summary_op = tf.merge_all_summaries()
summary_writer = tf.train.SummaryWriter('./logs', graph=tf.get_default_graph()) #graph=sess.graph
sum_ = sess.run([merged_summary_op], feed_dict = feed_dict)
summary_writer.add_summary(sum_, i)
tensorflow-003-summary_tensorboard
最新推荐文章于 2021-05-18 15:06:57 发布