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

No module named tensorflow.keras.optimizers #17

Open
stabilus opened this issue May 21, 2020 · 0 comments
Open

No module named tensorflow.keras.optimizers #17

stabilus opened this issue May 21, 2020 · 0 comments

Comments

@stabilus
Copy link

the import of
from tensorflow.keras.optimizers import Adam causes:

use: from tensorflow.python.keras.optimizers instead?

`ModuleNotFoundError Traceback (most recent call last)
in
4 import tensorflow.python.keras.optimizers
5 #from tensorflow.keras.optimizers import Adam
----> 6 import huskarl as hk
7 import gym
8

~\AppData\Roaming\Python\Python37\site-packages\huskarl_init_.py in
1 from huskarl.core import HkException
2 from huskarl.simulation import Simulation
----> 3 import huskarl.agent

~\AppData\Roaming\Python\Python37\site-packages\huskarl\agent_init_.py in
----> 1 from huskarl.agent.dqn import DQN
2 from huskarl.agent.a2c import A2C
3 from huskarl.agent.ddpg import DDPG

~\AppData\Roaming\Python\Python37\site-packages\huskarl\agent\dqn.py in
1 from tensorflow.keras.layers import Dense, Lambda
2 from tensorflow.keras.models import Model
----> 3 from tensorflow.keras.optimizers import Adam
4 import tensorflow as tf
5 import numpy as np

ModuleNotFoundError: No module named 'tensorflow.keras.optimizers'
`

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

1 participant