Skip to content

Commit e935b5a

Browse files
name none variables in rollout storage
1 parent 7bf5573 commit e935b5a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

rsl_rl/storage/rollout_storage.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ def mini_batch_generator(self, num_mini_batches: int, num_epochs: int = 8) -> Ge
192192
old_mu_batch = old_mu[batch_idx]
193193
old_sigma_batch = old_sigma[batch_idx]
194194

195+
hid_a_batch = None
196+
hid_c_batch = None
197+
masks_batch = None
198+
195199
# Yield the mini-batch
196200
yield (
197201
obs_batch,
@@ -203,10 +207,10 @@ def mini_batch_generator(self, num_mini_batches: int, num_epochs: int = 8) -> Ge
203207
old_mu_batch,
204208
old_sigma_batch,
205209
(
206-
None,
207-
None,
210+
hid_a_batch,
211+
hid_c_batch,
208212
),
209-
None,
213+
masks_batch,
210214
)
211215

212216
# For reinforcement learning with recurrent networks

0 commit comments

Comments
 (0)