Save Tensorflow graph for viewing in Tensorboard without summary operations

后端 未结 5 2249
南旧
南旧 2021-01-01 17:55

I have a rather complicated Tensorflow graph that I\'d like to visualize for optimization purposes. Is there a function that I can call that will simply save the graph for v

5条回答
  •  暖寄归人
    2021-01-01 18:01

    For all clarity, this is how I used the .flush() method and resolved the issue:

    Initialize the writer with:

    writer = tf.train.SummaryWriter("/home/rob/Dropbox/ConvNets/tf/log_tb", sess.graph_def)
    

    and use the writer with:

    writer.add_summary(summary_str, i)
        writer.flush()
    

提交回复
热议问题