如何获取执行张量流图中每个节点所消耗的时间 [英] how to get the time consumed to execute each node in tensorflow graph

查看:15
本文介绍了如何获取执行张量流图中每个节点所消耗的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我可以正确运行我的张量流图,但运行时间比我预期的要长,所以我想知道如何分析图中每个节点的执行时间.

Currently I can run through my tensorflow graph correctly, but the running time is longer than my expectation, so I'd like to know how to profile execution time for each node in the graph.

推荐答案

您可能可以使用 step_stats.TimelineTest 显示了如何获取统计信息的示例关于执行.

You could probably use fields recorded in step_stats. TimelineTest shows an example of how to get stats about execution.

这篇关于如何获取执行张量流图中每个节点所消耗的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆