Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter reuse issue! #9

Open
MahdiArj opened this issue Jun 23, 2021 · 2 comments
Open

Parameter reuse issue! #9

MahdiArj opened this issue Jun 23, 2021 · 2 comments

Comments

@MahdiArj
Copy link

MahdiArj commented Jun 23, 2021

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

@josmarcristello
Copy link

I'm having the same issue with "AttributeError: module 'tensorflow' has no attribute 'placeholder'". Currently at Tensorflow 2.11.0.

@MahdiArj
Copy link
Author

MahdiArj commented Mar 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants