Skip to content

Error #1

@ehsaneha

Description

@ehsaneha

I'm getting this error when trying to use your code can u help me please?

Traceback (most recent call last):
  File "test.py", line 35, in <module>
    dqn.compile(Adam(lr=1e-3), metrics=['mae'])
  File "C:\Users\ehsan\AppData\Local\Programs\Python\Python38\lib\site-packages\rl\agents\dqn.py", line 168, in compile
    self.target_model = clone_model(self.model, self.custom_model_objects)
  File "C:\Users\ehsan\AppData\Local\Programs\Python\Python38\lib\site-packages\rl\util.py", line 16, in clone_model
    clone.set_weights(model.get_weights())
  File "C:\Users\ehsan\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\keras\engine\training_v1.py", line 181, in get_weights
    self._compile_time_distribution_strategy)
AttributeError: 'Sequential' object has no attribute '_compile_time_distribution_strategy'

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