Skip to content

Commit

Permalink
Update linalg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
OccupyMars2025 committed Jul 14, 2022
1 parent 4baf0db commit ff5375b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/paddle/tensor/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def inf_norm(input,
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})
Expand Down Expand Up @@ -473,7 +473,6 @@ def p_matrix_norm(input, porder=1., axis=axis, 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},
Expand Down

0 comments on commit ff5375b

Please sign in to comment.