AverageMeter# class deepinv.utils.AverageMeter(name, fmt=':f')[source]# Bases: object Stores values and keeps track of averages and standard deviations. Parameters: name (str) – meter name for printing fmt (str) – meter format for printing reset()[source]# Reset meter values. update(val: ndarray | float | int, n: int = 1) → None[source]# Update average meter. Parameters: val (np.ndarray, float, int) – either array (i.e. batch) of values or single value n (int) – weight, defaults to 1