Skip to content

HarmonicEnergy

Methods and Attributes

Bases: HarmonicModel

Source code in torchebm/core/base_model.py
class HarmonicEnergy(HarmonicModel):
    def __init__(self, *args, **kwargs):
        warnings.warn(
            "`HarmonicEnergy` is deprecated and will be removed in a future version. "
            "Please use `HarmonicModel` instead.",
            DeprecationWarning,
            stacklevel=2
        )
        super().__init__(*args, **kwargs)