diff --git a/python/paddle/tensor/linalg.py b/python/paddle/tensor/linalg.py index 0c764692f4350e65c3da15c761b18019e09714c7..23c83b1e3810279c8a1312266d1fa1c865ef10da 100644 --- a/python/paddle/tensor/linalg.py +++ b/python/paddle/tensor/linalg.py @@ -257,7 +257,8 @@ def norm(x, p='fro', axis=None, keepdim=False, name=None): if in_dygraph_mode(): if dim is None: - return _C_ops.final_state_frobenius_norm(input, keepdim, True) + return _C_ops.final_state_frobenius_norm(input, [], keepdim, + True) return _C_ops.final_state_frobenius_norm(input, dim, keepdim, False) if _in_legacy_dygraph(): if dim is None: