def update(self, **kwargs) -> None:
        """
        Update accumulated data with new batch

        Args:
            **kwargs: tensors that should be accumulates
        """
        if self.collected_batches == 0:
            shape_type_dict = {}
            for field_name in self.keys:
                shape_type_dict[field_name] = {}
                shape_type_dict[field_name]["shape"] = (
                    self.num_samples,
                    *(kwargs[field_name].shape[1:]),
                )
                shape_type_dict[field_name]["dtype"] = kwargs[field_name].dtype
            self._allocate_memory(shape_type_dict=shape_type_dict)
        bs = 0
        for field_name in self.keys:
            bs = kwargs[field_name].shape[0]
            self.storage[field_name][
                self.collected_samples : self.collected_samples + bs, ...
            ] = (kwargs[field_name].detach().cpu())
        self.collected_samples += bs
        self.collected_batches += 1

        Update accumulated data with new batch

        Args:
            **kwargs: tensors that should be accumulates
        
catalyst/metrics/_accumulative.py