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: 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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -