In Tensorflow, get the names of all the Tensors in a graph

前端 未结 10 689
独厮守ぢ
独厮守ぢ 2020-11-27 10:29

I am creating neural nets with Tensorflow and skflow; for some reason I want to get the values of some inner tensors for a given input, so I am usi

10条回答
  •  鱼传尺愫
    2020-11-27 10:36

    I think this will do too:

    print(tf.contrib.graph_editor.get_tensors(tf.get_default_graph()))
    

    But compared with Salvado and Yaroslav's answers, I don't know which one is better.

提交回复
热议问题