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
Greetings,
I've adapted your code for my simple two-dimensional data set. According to statement below, since the TensorFlow doesn't support the attribute 'placeholder': AttributeError: module 'tensorflow' has no attribute 'placeholder'
I had to consider disabling v2 behavior via replacing the term import tensorflow as tf with: import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
Although it apparently looks compatible, the 'mu' parameter reuse tends to be problematic. Inciting the error below: Variable mu already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?
Thus, I've tried to solve this by tf.variable_scope("anfis", reuse=tf.AUTO_REUSE) which didn't work either!!!
Kindly assist me through a feasible solution if you had any ideas.
Yours sincerely
The text was updated successfully, but these errors were encountered:
On Mon, Mar 13, 2023, 6:18 AM Josmar Cristello ***@***.***> wrote:
I'm having the same issue with "AttributeError: module 'tensorflow' has no
attribute 'placeholder'". Currently at Tensorflow 2.11.0.
—
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUS25XOMDZLJZAJV7UUWKD3W32KHPANCNFSM47FTZ3PQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Greetings,
I've adapted your code for my simple two-dimensional data set. According to statement below, since the TensorFlow doesn't support the attribute 'placeholder':
AttributeError: module 'tensorflow' has no attribute 'placeholder'
I had to consider disabling v2 behavior via replacing the term import tensorflow as tf with:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
Although it apparently looks compatible, the 'mu' parameter reuse tends to be problematic. Inciting the error below:
Variable mu already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?
Thus, I've tried to solve this by tf.variable_scope("anfis", reuse=tf.AUTO_REUSE) which didn't work either!!!
Kindly assist me through a feasible solution if you had any ideas.
Yours sincerely
The text was updated successfully, but these errors were encountered: