Remove stdout flush

This commit is contained in:
Antonin Raffin 2019-09-09 13:51:18 +02:00
parent 12431b0e92
commit d333abe963
2 changed files with 0 additions and 4 deletions

View file

@ -1,4 +1,3 @@
import sys
import time
import torch as th
@ -113,7 +112,6 @@ class CEMRL(TD3):
if self.verbose > 0:
print("Eval num_timesteps={}, mean_reward={:.2f}".format(self.num_timesteps, evaluations[-1]))
print("FPS: {:.2f}".format(self.num_timesteps / (time.time() - start_time)))
sys.stdout.flush()
actor_steps = 0
# evaluate all actors

View file

@ -1,4 +1,3 @@
import sys
import time
import torch as th
@ -178,7 +177,6 @@ class TD3(BaseRLModel):
if self.verbose > 0:
print("Eval num_timesteps={}, mean_reward={:.2f}".format(self.num_timesteps, evaluations[-1]))
print("FPS: {:.2f}".format(self.num_timesteps / (time.time() - start_time)))
sys.stdout.flush()
# Reset environment
obs = self.env.reset()