5
當前張量流的tensorboard is not compatible with python3。因此,一般而言,我正在尋找一種在100個時期內打印出摘要讀數的方法。解析在tensorflow彙總對象上計算的`summary_str`字符串
有解析在以下行製作成浮動詞典中summary_str
字節字符串的函數?
summary_op = tf.merge_all_summaries()
summary_str = sess.run(summary_op, feed_dict=feed_dict)
我試過了,修改第三行爲'print(summary_str,summary_proto,sep =「:\ t」)''。我得到的是'b'\ n \ x0e \ n \ x07L2_loss \ x15 \ xd4J \ xcdA \ n \ x11 \ n \ nL1_penalty \ x15 \ xef \ xab \ xa6A \ n \ x0b \ n \ x04loss \ x15j \ xa0 \ xeeA \ n \ t \ n \ x02R2 \ x15 @ \ xd8Y \ xbf':\t無'。因此:沒有沒有屬性的「價值」。 –
啊,在我用ParseFromString()''的原始答案中出現錯誤。現在應該修復。 – mrry
解析後有沒有編輯summary_proto的選項?如果我想例如更改標籤,然後序列化回字符串? – aarbelle