mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-18 09:54:10 +00:00
Remove stdout flush
This commit is contained in:
parent
12431b0e92
commit
d333abe963
2 changed files with 0 additions and 4 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
import sys
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import torch as th
|
import torch as th
|
||||||
|
|
@ -113,7 +112,6 @@ class CEMRL(TD3):
|
||||||
if self.verbose > 0:
|
if self.verbose > 0:
|
||||||
print("Eval num_timesteps={}, mean_reward={:.2f}".format(self.num_timesteps, evaluations[-1]))
|
print("Eval num_timesteps={}, mean_reward={:.2f}".format(self.num_timesteps, evaluations[-1]))
|
||||||
print("FPS: {:.2f}".format(self.num_timesteps / (time.time() - start_time)))
|
print("FPS: {:.2f}".format(self.num_timesteps / (time.time() - start_time)))
|
||||||
sys.stdout.flush()
|
|
||||||
|
|
||||||
actor_steps = 0
|
actor_steps = 0
|
||||||
# evaluate all actors
|
# evaluate all actors
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import sys
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import torch as th
|
import torch as th
|
||||||
|
|
@ -178,7 +177,6 @@ class TD3(BaseRLModel):
|
||||||
if self.verbose > 0:
|
if self.verbose > 0:
|
||||||
print("Eval num_timesteps={}, mean_reward={:.2f}".format(self.num_timesteps, evaluations[-1]))
|
print("Eval num_timesteps={}, mean_reward={:.2f}".format(self.num_timesteps, evaluations[-1]))
|
||||||
print("FPS: {:.2f}".format(self.num_timesteps / (time.time() - start_time)))
|
print("FPS: {:.2f}".format(self.num_timesteps / (time.time() - start_time)))
|
||||||
sys.stdout.flush()
|
|
||||||
|
|
||||||
# Reset environment
|
# Reset environment
|
||||||
obs = self.env.reset()
|
obs = self.env.reset()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue