class_docstr: A base class for all regularizers.
class_docstr_tok: ["A","base","class","for","all","regularizers","."]
docstr: Reset the regularizer's term.
  
  .. warning ::
      Typically, you want to use the regularization term exactly once to calculate gradients via
      :meth:`pop_regularization_term`. In this case, there should be no need to manually call this method.
docstr_tok: ["Reset","the","regularizer","'s","term",".","..","warning",":",":","Typically",",","you","want","to","use","the","regularization","term","exactly","once","to","calculate","gradients","via",":","meth",":","`","pop_regularization_term","`",".","In","this","case",",","there","should","be","no","need","to","manually","call","this","method","."]
code: def post_parameter_update(self):
      """
      Reset the regularizer's term.
  
      .. warning ::
          Typically, you want to use the regularization term exactly once to calculate gradients via
          :meth:`pop_regularization_term`. In this case, there should be no need to manually call this method.
      """
      if self.updated:
          warnings.warn(
              "Resetting regularization term without using it; this may be an error."
          )
      self.reset()
  
imports: from __future__ import annotations
  import warnings
  from abc import ABC, abstractmethod
  from typing import Any, ClassVar, Iterable, Mapping, Optional
  import torch
  from class_resolver import ClassResolver, normalize_string
  from torch import nn
  from torch.nn import functional
  from .utils import lp_norm, powersum_norm
label_desc: Use image node_id 9 for calling the Regularizer obj's underlying member method code with example usage: obj.post_parameter_update() without return types