mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-07-30 20:18:15 +00:00
Add tqdm when using CQL
This commit is contained in:
parent
66f900ead9
commit
73a6d5117e
1 changed files with 3 additions and 1 deletions
|
|
@ -282,7 +282,9 @@ class SAC(OffPolicyAlgorithm):
|
|||
ent_coef_losses, ent_coefs = [], []
|
||||
actor_losses, critic_losses = [], []
|
||||
|
||||
for gradient_step in range(gradient_steps):
|
||||
range_ = tqdm(range(gradient_steps)) if self.use_cql else range(gradient_steps)
|
||||
|
||||
for gradient_step in range_:
|
||||
# Sample replay buffer
|
||||
replay_data = self.replay_buffer.sample(batch_size, env=self._vec_normalize_env)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue