You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:\Users\y\AppData\Local\Programs\Python\Python37\music-generator-1\rbm_chords.py", line 59, in
x = tf.placeholder(tf.float32, [None, n_visible], name="x")
AttributeError: module 'tensorflow' has no attribute 'placeholder'
I fixed it by changing: rbm_chords.py:
#import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
The text was updated successfully, but these errors were encountered:
You will get this error if using TensorFlow 2.x:
Traceback (most recent call last):
File "C:\Users\y\AppData\Local\Programs\Python\Python37\music-generator-1\rbm_chords.py", line 59, in
x = tf.placeholder(tf.float32, [None, n_visible], name="x")
AttributeError: module 'tensorflow' has no attribute 'placeholder'
I fixed it by changing: rbm_chords.py:
#import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
The text was updated successfully, but these errors were encountered: