MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / __init__

Method __init__

trl/trl/data_utils.py:451–453  ·  view source on GitHub ↗
(self, maxval: int)

Source from the content-addressed store, hash-verified

449 """
450
451 def __init__(self, maxval: int):
452 self.maxval = maxval
453 self.tree = [0] * (2 * maxval)
454
455 def add(self, val):
456 assert 0 < val <= self.maxval

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected