Attributeerror: Module 'tensorflow' Has No Attribute 'variable' "error"
I have used tensor-flow for ONE day, but there come some troubles, when I import tensor-flow, there would be AttributeError: 'module' object has no attribute 'variable' I use Windo
Solution 1:
It looks like you have written a module, random.py
, which shadows the standard library's random module. Try renaming the file and check if the error goes away. You can tell it's importing your random.py at the bottom of the stacktrace you posted.
Post a Comment for "Attributeerror: Module 'tensorflow' Has No Attribute 'variable' "error""