pytorch_pfn_extras.training.extensions.variable_statistics_plot.Reservoir#
- class pytorch_pfn_extras.training.extensions.variable_statistics_plot.Reservoir(size, data_shape, dtype=<class 'numpy.float32'>)#
Bases:
objectReservoir sample with a fixed sized buffer.
Methods
__init__(size, data_shape[, dtype])add(x[, idx])get_data()- Parameters:
size (int) –
data_shape (Tuple[int, ...]) –
dtype (Any) –