In [2]:
import tensorflow as tf
graph = tf.get_default_graph()
graph.get_operations()
for op in graph.get_operations():
    print(op.name)


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-7d5d1c59e149> in <module>()
----> 1 import tensorflow as tf
      2 graph = tf.get_default_graph()
      3 graph.get_operations()
      4 for op in graph.get_operations():
      5     print(op.name)

ImportError: No module named tensorflow

In [ ]: