You normally import tensorflow
by writing,
import tensorflow as tf
It's possible that you have named a file in your project tensorflow.py
and the import
statement is importing from this file.
Alternatively, you can try this,
from tensorflow.python.framework import ops
ops.reset_default_graph()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…