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

module 'tensorflow' has no attribute 'AUTO_REUSE' #26

Open
nsliem745 opened this issue Jun 26, 2023 · 1 comment
Open

module 'tensorflow' has no attribute 'AUTO_REUSE' #26

nsliem745 opened this issue Jun 26, 2023 · 1 comment

Comments

@nsliem745
Copy link

File "run_eval.py", line 16, in
from vae.models import ConvVAE, MlpVAE
File "C:\CARLA_0.9.13\PythonAPI\examples\Trials\RL\Carla-ppo\vae\models.py", line 33, in
class VAE():
File "C:\CARLA_0.9.13\PythonAPI\examples\Trials\RL\Carla-ppo\vae\models.py", line 40, in VAE
model_dir=".", loss_fn=bce_loss, training=True, reuse=tf.AUTO_REUSE,
AttributeError: module 'tensorflow' has no attribute 'AUTO_REUSE'

@merkol
Copy link

merkol commented Jun 27, 2023

You may have installed tensorflow.v2 use v1 instead or call it like this tf.compat.v1.AUTO_REUSE

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