diff --git a/pymc/distributions/distribution.py b/pymc/distributions/distribution.py index 0d3aee8862..22ed4d3400 100644 --- a/pymc/distributions/distribution.py +++ b/pymc/distributions/distribution.py @@ -535,6 +535,14 @@ def support_point(rv: TensorVariable) -> TensorVariable: return _support_point(rv.owner.op, rv, *rv.owner.inputs).astype(rv.dtype) +def _moment(op, rv, *rv_inputs) -> TensorVariable: + warnings.warn( + "The moment() method is deprecated. Use support_point() instead.", + DeprecationWarning, + ) + return _support_point(op, rv, *rv_inputs) + + def moment(rv: TensorVariable) -> TensorVariable: warnings.warn( "The moment() method is deprecated. Use support_point() instead.",