MCPcopy Create free account
hub / github.com/pytorch/tutorials / __init__

Method __init__

intermediate_source/reinforcement_q_learning.py:140–141  ·  view source on GitHub ↗
(self, capacity)

Source from the content-addressed store, hash-verified

138class ReplayMemory(object):
139
140 def __init__(self, capacity):
141 self.memory = deque([], maxlen=capacity)
142
143 def push(self, *args):
144 """Save a transition"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected