Skip to content

Commit

Permalink
refine example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Star125 committed Jun 7, 2023
1 parent e3ca1d5 commit 79c5884
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/paddle/sparse/unary.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,8 @@ def pca_lowrank(x, q=None, center=True, niter=2, name=None):
print("sparse.pca_lowrank API only support CUDA 11.x")
U, S, V = None, None, None
# U, S, V = pca_lowrank(sparse_x)
# use code blow when your device CUDA version >= 11.0
# U, S, V = paddle.sparse.pca_lowrank(sparse_x)
print(U)
# Tensor(shape=[5, 5], dtype=float64, place=Place(gpu:0), stop_gradient=True,
Expand Down

0 comments on commit 79c5884

Please sign in to comment.