Code:
import numpy as np
import tensorflow as tf
a3dim = np.array([[[1,2],[3,4]],
[[5,6],[7,8]]
])
print("a3dim Shape: ", a3dim.shape)
tf_t=tf.convert_to_tensor(a3dim,dtype=tf.float64)
print('tf_t : ',tf_t)
print('tf_t[0][0][0] : ',tf_t[0][0][0])
print('tf_t[1][1][1] : ',tf_t[1][1][1])
print('run(tf_t) : \n', tf.run(tf_t))
When I run this program, I have the following error:
Error:
AttributeError Traceback (most recent call last)
<ipython-input-9-3506c45f6784> in <module>()
15 print('tf_t[1][1][1] : ',tf_t[1][1][1])
16
---> 17 print('run(tf_t) : \n', tf.run(tf_t))
AttributeError: module 'tensorflow' has no attribute 'run'
How do I solve this tensorflow issue? Is it a version problem?