diff --git a/torch/_refs/__init__.py b/torch/_refs/__init__.py index 7a78c08dd0c2..1dc43d67028c 100644 --- a/torch/_refs/__init__.py +++ b/torch/_refs/__init__.py @@ -1666,8 +1666,7 @@ def remainder(a: TensorLikeType, b: TensorLikeType) -> TensorLikeType: def rsub( a: Union[TensorLikeType, NumberType], b: Union[TensorLikeType, NumberType], - *, - alpha: Optional[NumberType] = None, + alpha: NumberType = 1, ): if isinstance(a, Number): msg = "Received a Number for the first argument, but expected a Tensor"