Skip to content

Commit

Permalink
为 paddle.linalg.norm 进行功能升级与对齐 (#60070)
Browse files Browse the repository at this point in the history
* xian zhan ge keng

* fix bug

* fix bug

* fix bug

* remove useless code

* fix

* fix coverage

* fix test

* add enable_static in test

* remove c++ impl

* fix vector_norm

* add test for vector_norm

* simplify vector_norm impl

* update

* update

* norm -> vector_norm + matrix_norm

* update

* simplify again

* update

* set default p = 2.0

* update

* update

* update

* fix ci and remove 'reduce_all'

* adapt fro

* add dygraph test for norm

* fix test_zero_dim_tensor.py

* fix linalg.py

* fix paddle/linalg.py

* fix test_norm

* fix

* fix

* add None for porder in the table
  • Loading branch information
zbt78 authored Feb 2, 2024
1 parent acd459b commit 4589cdb
Show file tree
Hide file tree
Showing 3 changed files with 671 additions and 308 deletions.
2 changes: 2 additions & 0 deletions python/paddle/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
lu,
lu_unpack,
matrix_exp,
matrix_norm,
matrix_power,
matrix_rank,
multi_dot,
Expand All @@ -46,6 +47,7 @@
__all__ = [
'cholesky',
'norm',
'matrix_norm',
'vector_norm',
'cond',
'cov',
Expand Down
Loading

0 comments on commit 4589cdb

Please sign in to comment.