We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 071e13f commit 0457845Copy full SHA for 0457845
rl/agent/ddpg.py
@@ -253,7 +253,8 @@ def train_an_epoch(self):
253
254
# update memory, needed for PER
255
errors = abs(np.sum(q_val - y, axis=1))
256
- assert y.shape == (self.batch_size, self.env_spec['action_dim'])
+ # Q size is only 1, from critic
257
+ assert y.shape == (self.batch_size, 1)
258
assert errors.shape == (self.batch_size, )
259
self.memory.update(errors)
260
0 commit comments