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

“from recsim.agents import full_slate_q_agent” gets new problem #7

Open
TobyGE opened this issue Dec 11, 2019 · 3 comments
Open

Comments

@TobyGE
Copy link

TobyGE commented Dec 11, 2019

I had maybe a new error on Linux...

Tensorflow Attribute Error: module 'tensorflow_core._api.v2.train' has no attribute 'RMSProp Optimizer'

google/dopamine#121
This link relates to this error, unfortunately, no one answers...

Screen Shot 2019-12-10 at 9 31 52 PM

Originally posted by @TobyGE in #5 (comment)

@TobyGE TobyGE changed the title Tensorflow Attribute Error: module 'tensorflow_core._api.v2.train' has no attribute 'RMSProp Optimizer' “from recsim.agents import full_slate_q_agent” gets new problem Dec 11, 2019
@cwhsu-google
Copy link
Contributor

Could you run Dopamine/Recsim using Tensorflow 1.1.5?
https://github.com/google/dopamine/blob/master/README.md#mac-os-x
We will think about a long term solution. Thanks.

@TobyGE
Copy link
Author

TobyGE commented Dec 23, 2019

Could you run Dopamine/Recsim using Tensorflow 1.1.5?
https://github.com/google/dopamine/blob/master/README.md#mac-os-x
We will think about a long term solution. Thanks.

At first, I couldn't because of the wrong tf version. After replacing tf 2.0 with tf 1.15, I run the test again. There were some WARNINGs but I thought the test worked.
Screen Shot 2019-12-22 at 9 48 05 PM

Then I imported full_slate_q_agent again, however, this time still failed. A new error existed, shown as below.
Screen Shot 2019-12-22 at 9 52 03 PM

@Amir-Abushanab
Copy link

Amir-Abushanab commented Feb 18, 2020

Didn't want to create a new issue as I believe it's the same problem.

Running the third cell in the overview notebook on Colab https://github.com/google-research/recsim/blob/master/recsim/colab/RecSim_Overview.ipynb gives the following error

ModuleNotFoundError: No module named 'tensorflow.contrib'


Update: changing the second line to %tensorflow_version 1.x provides a temporary fix, but the Colab environment will still give a warning for not using TF 2.0

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

3 participants