Skip to content

Commit

Permalink
missing docs for on-policy trainer
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinkle23897 committed Mar 17, 2022
1 parent 7a00daf commit 3ce4f6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tianshou/trainer/onpolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ class OnpolicyTrainer(BaseTrainer):
:param bool verbose: whether to print the information. Default to True.
:param bool test_in_train: whether to test in the training phase. Default to
True.
.. note::
Only either one of step_per_collect and episode_per_collect can be specified.
"""

__doc__ = BaseTrainer.gen_doc("onpolicy") + "\n".join(__doc__.split("\n")[1:])
Expand Down

0 comments on commit 3ce4f6d

Please sign in to comment.