TensorFlow设备名称的详细组成?

时间:2017-12-26 03:09:23

标签: tensorflow

device names中的onButtonClick: function (index) { this.activeIndex = index; } AllocatorsCompute等“后缀”是什么,如下所示:

Tensors

这些是针对给定CPU上的进程(或线程)吗?但那么第一种情况呢,那里没有指定CPU?

BTW,我在 Allocators /job:localhost/replica:0/task:0/device:CPU:0 Compute /job:localhost/replica:0/task:0/device:CPU:0 Tensors 中看到了这些例子(从Timeline序列化)。

2 个答案:

答案 0 :(得分:1)

似乎这些后缀不是TensorFlow的原生,但是当它使用Timeline.generate_chrome_trace_format()以Chrome跟踪格式生成跟踪时会创建工件。

这些是source code的相关行:

self._chrome_trace.emit_pid(dev_stats.device + ' Compute', device_pid)
self._chrome_trace.emit_pid(dev_stats.device + ' Tensors', tensors_pid)

答案 1 :(得分:0)

我相信一个显示运行在您设备上的操作的时间线,另一个显示在该设备上运行的张量的时间线。