agents icon indicating copy to clipboard operation
agents copied to clipboard

Support TFEnvironment in Actor

Open Rossil2012 opened this issue 2 years ago • 2 comments

When using Actor to wrap a collecting policy on a TFEnvironment, I came across the exception "ValueError("Actor doesn't support TFEnvironments yet.")" and I found it easy to solve as long as to use TFDriver with the same arguments as the PyDriver, which drives the policy on a PyEnvironment.

Rossil2012 avatar Mar 15 '22 10:03 Rossil2012

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

google-cla[bot] avatar Mar 15 '22 10:03 google-cla[bot]

@ebrevdo Could you help review this PR please?

Rossil2012 avatar Mar 28 '22 11:03 Rossil2012