Skip to content

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

Open

Description

@nsliem745

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'

Activity

  1. merkol commented on Jun 27, 2023

    @merkol

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions