diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index f7390e9e49f7e..e954b4f2aad4e 100644 --- a/python/paddle/tensor/math.py +++ b/python/paddle/tensor/math.py @@ -779,6 +779,7 @@ def remainder(x, y, name=None): return _elementwise_op(LayerHelper(op_type, **locals())) +@inplace_apis_in_dygraph_only def remainder_(x, y, name=None): r""" Inplace version of ``remainder`` API, the output Tensor will be inplaced with input ``x``.