pytorch-rdpg icon indicating copy to clipboard operation
pytorch-rdpg copied to clipboard

The following problem occurred when “updata_policy” was carried out, hope to get help, thank you

Open Chenhonjun opened this issue 1 year ago • 0 comments

if trajectory_steps >= self.trajectory_length: # trajectory_length:5 self.agent.reset_lstm_hidden_state(done=False) trajectory_steps = 0 if step > self.warmup: self.update_policy()

... --> 295 if maxlen > 0 and maxlen + 1 < T : 296 t = random.randrange(T - maxlen - 1) # Include next state after final "maxlen" state 297 return mem[t:t + maxlen + 1]

TypeError: '>' not supported between instances of 'NoneType' and 'int'

Chenhonjun avatar Dec 05 '23 13:12 Chenhonjun