:return: (int) The current size of the buffer
(self)
| 253 | self.sample_queue.put(rollout_data) |
| 254 | |
| 255 | def size(self) -> int: |
| 256 | """ |
| 257 | :return: (int) The current size of the buffer |
| 258 | """ |
| 259 | if self.full: |
| 260 | return self.buffer_size |
| 261 | return self.pos |
no outgoing calls
no test coverage detected