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

Update test_ppo.py #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update test_ppo.py #382

wants to merge 1 commit into from

Conversation

MiChaelinzo
Copy link

You can use the tf.test.TestCase class instead of unittest.TestCase to run the test, which allows you to use the self.assert* methods provided by TensorFlow.

You can use the tf.compat.v1.test.TestCase class instead of unittest.TestCase to run the test which allows you to use the self.assert* methods provided by TensorFlow.

You can use the tf.compat.v1.Session() instead of tf.Session() to create a session, which allows you to run the test in a TensorFlow 1 environment.

You can use tf.test.mock.patch to mock the environment for the test, which allows you to test the agent without having to run the environment.

You can use tf.compat.v1.disable_eager_execution() to disable eager execution, which can help to optimize the performance of the test.

You can use tf.compat.v1.ConfigProto(allow_soft_placement=True) to configure the session , which can help to optimize the performance of the test.

You can use the tf.test.TestCase class instead of unittest.TestCase to run the test, which allows you to use the self.assert* methods provided by TensorFlow.

You can use the tf.compat.v1.test.TestCase class instead of unittest.TestCase to run the test which allows you to use the self.assert* methods provided by TensorFlow.

You can use the tf.compat.v1.Session() instead of tf.Session() to create a session, which allows you to run the test in a TensorFlow 1 environment.

You can use tf.test.mock.patch to mock the environment for the test, which allows you to test the agent without having to run the environment.

You can use tf.compat.v1.disable_eager_execution() to disable eager execution, which can help to optimize the performance of the test.

You can use tf.compat.v1.ConfigProto(allow_soft_placement=True) to configure the session , which can help to optimize the performance of the test.
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

Successfully merging this pull request may close these issues.

1 participant