首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

tf.summary.FileWriter

summary protocol buffer写入event file。FileWriter类提供了一种机制,用于在给定目录中创建事件文件,并向其中添加摘要和事件。该类异步更新文件内容。...此事件文件将包含调用以下函数之一时构造的事件协议缓冲区:add_summary()、add_session_log()、add_event()或add_graph()。...你通常会从你启动它的会话中传递图:...create a graph...# Launch the graph in a session.sess = tf.Session()# Create a summary...writer, add the 'graph' to the event file.writer = tf.summary.FileWriter(, sess.graph...参数:summary: 摘要协议缓冲区,可选地序列化为字符串。global_step: Number,可选的全局步骤值,以记录摘要。closeclose()将事件文件刷新到磁盘并关闭该文件。

2.7K20
领券