discopat.nn_training.utils

Functions

get_world_size()

is_dist_avail_and_initialized()

Classes

MetricLogger([delimiter])

SmoothedValue([window_size, fmt])

Track a series of values and provide access to smoothed values over a window or the global series average.

class discopat.nn_training.utils.MetricLogger(delimiter='\t')[source]

Bases: object

add_meter(name, meter)[source]
log_every(iterable, print_freq, header=None)[source]
synchronize_between_processes()[source]
update(**kwargs)[source]
class discopat.nn_training.utils.SmoothedValue(window_size=20, fmt=None)[source]

Bases: object

Track a series of values and provide access to smoothed values over a window or the global series average.

property avg
property global_avg
property max
property median
synchronize_between_processes()[source]

Warning: does not synchronize the deque.

update(value, n=1)[source]
property value
discopat.nn_training.utils.get_world_size()[source]
discopat.nn_training.utils.is_dist_avail_and_initialized()[source]