Fix the docs for its format problems

This commit is contained in:
dinglinhe 2021-09-03 11:22:50 +08:00
parent 291d4c4d84
commit 7e15044073
2 changed files with 5 additions and 0 deletions

View File

@ -1222,6 +1222,7 @@ class MatrixDiag(Cell):
[[[ 1. 0. 0.]
[ 0. -1. 0.]
[ 0. 0. 1.]
[[ 1. 0. 0.]
[ 0. -1. 0.]
[ 0. 0. 1.]]]

View File

@ -253,8 +253,10 @@ def gamma(shape, alpha, beta, seed=None):
>>> print(output)
[[[ 2.2132034 5.8855834]]
[ 3.3981476 7.5805717]
[[ 3.3981476 7.5805717]]
[ 3.7190282 19.941492]
[[ 2.9512358 2.5969937]]
[ 3.786061 5.160872 ]]]
>>> # case 4: beta_shape is (2, 1), the output is different.
@ -266,8 +268,10 @@ def gamma(shape, alpha, beta, seed=None):
>>> print(output)
[[[ 5.6085486 7.8280783]]
[ 15.97684 16.116285]
[[ 1.8347423 1.713663]]
[ 3.2434065 15.667398]
[[ 4.2922077 7.3365674]]
[ 5.3876944 13.159832 ]]]
"""