Python Forum

Full Version: Attribute Error while using tensor flow
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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...
change the name of your own file to something different from tensorflow.py
THANKS buran I GOT THE PROBLEM SOLVED..