nvalchemi.training.distillation.FIFO#

class nvalchemi.training.distillation.FIFO[source]#

Eviction policy that drops the oldest frames first.

A recipe names this policy as "fifo". It is the buffer’s default.

Examples

>>> from nvalchemi.training.distillation import FIFO, ReplayBuffer
>>> buffer = ReplayBuffer(capacity=4096, eviction=FIFO())
select(buffer, incoming, capacity)[source]#

Return the indices of the oldest frames, as many as exceed capacity.

Parameters:
Return type:

_DropIndices