From cd94be6109c313618a1722423c81fb54fcc1103c Mon Sep 17 00:00:00 2001 From: OccupyMars2025 <31559413+OccupyMars2025@users.noreply.github.com> Date: Mon, 1 Aug 2022 15:33:56 +0800 Subject: [PATCH] Update linalg.py (#44347) --- python/paddle/tensor/linalg.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/tensor/linalg.py b/python/paddle/tensor/linalg.py index 23720b1921..ef557e783a 100644 --- a/python/paddle/tensor/linalg.py +++ b/python/paddle/tensor/linalg.py @@ -420,7 +420,7 @@ def norm(x, p='fro', axis=None, keepdim=False, name=None): keepdim=False, asvector=False, name=None): - helper = LayerHelper('frobenius_norm', **locals()) + helper = LayerHelper('inf_norm', **locals()) out = helper.create_variable_for_type_inference( dtype=helper.input_dtype()) helper.append_op(type='abs', inputs={'X': input}, outputs={'Out': out}) @@ -473,7 +473,6 @@ def norm(x, p='fro', axis=None, keepdim=False, name=None): 'keep_dim': keepdim, 'reduce_all': True if axis is None else False }) - porder block.append_op(type='pow', inputs={'X': sum_out}, outputs={'Out': out}, -- GitLab