def __init__(self, every=1):
        """Creates an instance of the epoch Max RAM metric.

        :param every: seconds after which update the maximum RAM usage.
        """
        super(EpochMaxRAM, self).__init__(
            every, reset_at="epoch", emit_at="epoch", mode="train"
        )
Creates an instance of the epoch Max RAM metric.

        :param every: seconds after which update the maximum RAM usage.
        
avalanche/evaluation/metrics/ram_usage.py