【发布时间】:2018-03-31 07:49:39
【问题描述】:
我正在查看 tensorflow 日志,发现以下行:
4 ops no flops stats due to incomplete shapes. Consider passing run_meta to use run_time shapes.
这条消息似乎来自following code:
for op in graph.get_operations():
try:
stats = ops.get_stats_for_node_def(
graph, op.node_def, REGISTERED_FLOP_STATS)
except ValueError:
# Catch Exception When shape is incomplete. Skip it.
op_missing_shape += 1
stats = None
......
if op_missing_shape > 0 and not run_meta:
sys.stderr.write('%d ops no flops stats due to incomplete shapes.\n' %
op_missing_shape)
在与 GRU 类似的情况下,日志中的这一行不会出现。所以我假设错误不是由批量大小引起的。你能解释一下它是什么吗?另外如何添加“run_meta”属性?谢谢。
【问题讨论】:
标签: tensorflow