def dump(self, epoch):
        """
        Append all gradients to a pickle file.

        Args:
            epoch: Current epoch
        Returns:
            Nothing!
        """
        with open(
            self.pars.save_path + "/grad_dict_{}.pkl".format(self.name), "ab"
        ) as f:
            pkl.dump([self.saver], f)
        self.saver = {
            "grad_normal_mean": [],
            "grad_normal_std": [],
            "grad_abs_mean": [],
            "grad_abs_std": [],
        }

        Append all gradients to a pickle file.

        Args:
            epoch: Current epoch
        Returns:
            Nothing!
        
examples/pytorch/hilander/PSS/Smooth_AP/src/evaluate.py