Question 1: Short answer
hardAI-checkedPyTorchIn a DDPG implementation the critic forgets to squeeze its output:
r, d = batch["rew"], batch["done"] # both shape (100,)
q_pi_targ = q_targ(o2, pi_targ(o2)) # shape (100, 1) -- not squeezed
backup = r + gamma * (1 - d) * q_pi_targ
What is the shape of backup?