-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor TestAgentWithPyTorch so its models can be reused
Summary: `TestAgentWithPyTorch` creates and trains small models to make sure their construction hasn't been broken. Other tests can also benefit from creating and training the same small models. Instead of piling up all tests in the same class, we refactor `TestAgentWithPyTorch` to create and train them in separate methods. Then, we can subclass it to create new tests benefitting from the same models, without making the original too overloaded. Reviewed By: yiwan-rl Differential Revision: D67707013 fbshipit-source-id: 42e39a517a37cc826fb4974744620bf46c1e8758
- Loading branch information
1 parent
6066854
commit 4b8e774
Showing
1 changed file
with
127 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters