提交 a299f995 authored 作者: Peng Liu's avatar Peng Liu

Adjust Loop code result for tutorial since the Travis CI test failed.

上级 f0fc09e6
...@@ -236,16 +236,16 @@ The full documentation can be found in the library: :ref:`Scan <lib_scan>`. ...@@ -236,16 +236,16 @@ The full documentation can be found in the library: :ref:`Scan <lib_scan>`.
.. testoutput:: .. testoutput::
[array([[ 1.40514825, 1.40514825], [[ 1.40514825 1.40514825]
[ 2.88898899, 2.38898899], [ 2.88898899 2.38898899]
[ 4.34018291, 4.34018291], [ 4.34018291 4.34018291]
[ 6.53463142, 6.78463142], [ 6.53463142 6.78463142]
[ 9.82972243, 9.82972243], [ 9.82972243 9.82972243]
[ 14.22203814, 14.09703814], [ 14.22203814 14.09703814]
[ 20.07439936, 20.07439936], [ 20.07439936 20.07439936]
[ 28.12291843, 28.18541843], [ 28.12291843 28.18541843]
[ 39.1913681 , 39.1913681 ], [ 39.1913681 39.1913681 ]
[ 54.28407732, 54.25282732]])] [ 54.28407732 54.25282732]]
[[ 1.40514825 1.40514825] [[ 1.40514825 1.40514825]
[ 2.88898899 2.38898899] [ 2.88898899 2.38898899]
[ 4.34018291 4.34018291] [ 4.34018291 4.34018291]
...@@ -340,16 +340,16 @@ Note that we need to iterate over the indices of ``y`` and not over the elements ...@@ -340,16 +340,16 @@ Note that we need to iterate over the indices of ``y`` and not over the elements
.. testoutput:: .. testoutput::
[array([[ 0.96402758, 0. ], [[ 0.96402758 0. ]
[ 0. , 0.96402758], [ 0. 0.96402758]
[ 0. , 0. ], [ 0. 0. ]
[ 0.76159416, 0.76159416], [ 0.76159416 0.76159416]
[ 0.76159416, 0. ], [ 0.76159416 0. ]
[ 0. , 0.76159416], [ 0. 0.76159416]
[ 0. , 0.76159416], [ 0. 0.76159416]
[ 0. , 0.76159416], [ 0. 0.76159416]
[ 0. , 0. ], [ 0. 0. ]
[ 0.76159416, 0.76159416]])] [ 0.76159416 0.76159416]]
Note that if you want to use a random variable ``d`` that will not be updated through scan loops, you should pass this variable as a ``non_sequences`` arguments. Note that if you want to use a random variable ``d`` that will not be updated through scan loops, you should pass this variable as a ``non_sequences`` arguments.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论