MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / size

Method size

roach/models/ppo_buffer.py:255–261  ·  view source on GitHub ↗

:return: (int) The current size of the buffer

(self)

Source from the content-addressed store, hash-verified

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

Callers 3

runMethod · 0.80
control_pidMethod · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected