Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinkle23897 committed Mar 17, 2022
1 parent 6df9365 commit 2fd889f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tianshou/trainer/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def __next__(self) -> Union[None, Tuple[int, Dict[str, Any], Dict[str, Any]]]:

# iterator exhaustion check
if self.epoch >= self.max_epoch:
if self.save_fn:
if self.test_collector is not None and self.save_fn:
self.save_fn(self.policy)
raise StopIteration

Expand Down

0 comments on commit 2fd889f

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy