Python Forum
Attribute Error while using tensor flow - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: Attribute Error while using tensor flow (/thread-8992.html)



Attribute Error while using tensor flow - pratheep - Mar-16-2018

Guys please help me out..
I am getting a error....

HERE'S MY CODE.
import tensorflow as tf
node1 = tf.constant(3.0)
node2 = tf.constant(4.0)
print(node1)
HERE'S THE ERROR
Error:
Traceback (most recent call last): File "/Users/admin/Documents/tensorflow.py", line 1, in <module> import tensorflow as tf File "/Users/admin/Documents/tensorflow.py", line 2, in <module> node1 = tf.constant(3.0) AttributeError: 'module' object has no attribute 'constant'
I am using OSX and python 3.6...


RE: Attribute Error while using tensor flow - buran - Mar-16-2018

change the name of your own file to something different from tensorflow.py


RE: Attribute Error while using tensor flow - pratheep - Mar-16-2018

THANKS buran I GOT THE PROBLEM SOLVED..