tf.contrib.graph_editor.get_tensors

View source on GitHub

get all the tensors which are input or output of an op in the graph.

graph a tf.Graph.

A list of tf.Tensor.

TypeError if graph is not a tf.Graph.