python - AttributeError: module 'tensorflow' has no attribute 'Variable' "ERROR" -
i have used tensor-flow 1 day, there come troubles, when import tensor-flow, there attributeerror: 'module' object has no attribute 'variable'
i use windows10, python 3.5.3, anaconda-3 4.4.0
here test code:
import tensorflow tf my_var = tf.variable(tf.linspace(10.0, 13.0, 4)) tf.session() sess: print (sess.run(my_var))
i got error:
it looks have written module, random.py
, shadows standard library's random module. try renaming file , check if error goes away. can tell it's importing random.py @ bottom of stacktrace posted.
Comments
Post a Comment