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

Fail to run the demo #41

Open
woshiqchi opened this issue Feb 2, 2021 · 2 comments
Open

Fail to run the demo #41

woshiqchi opened this issue Feb 2, 2021 · 2 comments

Comments

@woshiqchi
Copy link

When I run the demo code shown on the readme page, there is a error occured as below.
RuntimeError: v1.summary.FileWriter is not compatible with eager execution. Use tf.summary.create_file_writer,or a with v1.Graph().as_default(): context

@woshiqchi
Copy link
Author

The demo code is:

import reaver as rvr

env = rvr.envs.SC2Env(map_name='MoveToBeacon')
agent = rvr.agents.A2C(env.obs_spec(), env.act_spec(), rvr.models.build_fully_conv, rvr.models.SC2MultiPolicy, n_envs=4)
agent.run(env)

@inoryy
Copy link
Owner

inoryy commented Feb 6, 2021

It's probably an incompatibility with the newer TensorFlow versions, try pinning it to 2.1.x.

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