我檢討tensorflow日誌,發現下面一行: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」屬性?謝謝。