berkeleydeeprlcourse / homework_fall2022

Assignments for Berkeley CS 285: Deep Reinforcement Learning (Fall 2022)
114 stars 157 forks source link

Update replay_buffer.py #5

Open earnesdm opened 1 year ago

earnesdm commented 1 year ago

Using len with the old code returns "ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()". I believe that line 21 is trying to check if the list is None. If so, this is a better way.