提交 43b57613 authored 作者: Jakub Sygnowski's avatar Jakub Sygnowski

nit, comment + cloop=False

上级 4c0014de
...@@ -741,7 +741,7 @@ class Function(object): ...@@ -741,7 +741,7 @@ class Function(object):
and represent outputs that are requested to be calculated. Regardless and represent outputs that are requested to be calculated. Regardless
of the presence of ``output_subset``, the updates are always calculated of the presence of ``output_subset``, the updates are always calculated
and processed. To disable the updates, you should use the ``copy`` and processed. To disable the updates, you should use the ``copy``
method with ``delete_updates=False``. method with ``delete_updates=True``.
Returns Returns
------- -------
......
...@@ -208,7 +208,7 @@ def test_partial_function(): ...@@ -208,7 +208,7 @@ def test_partial_function():
assert f(4, output_subset=[0, 2]) == [f(4)[0], f(4)[2]] assert f(4, output_subset=[0, 2]) == [f(4)[0], f(4)[2]]
utt.assert_allclose(f(5), np.array([32., 16., 1.7857142857142858])) utt.assert_allclose(f(5), np.array([32., 16., 1.7857142857142858]))
check_partial_function(vm.VM_Linker(allow_partial_eval=True)) check_partial_function(vm.VM_Linker(allow_partial_eval=True, use_cloop=False))
check_partial_function('cvm') check_partial_function('cvm')
...@@ -222,7 +222,7 @@ def test_partial_function_with_output_keys(): ...@@ -222,7 +222,7 @@ def test_partial_function_with_output_keys():
assert f(5, output_subset=['a'])['a'] == f(5)['a'] assert f(5, output_subset=['a'])['a'] == f(5)['a']
check_partial_function_output_keys(vm.VM_Linker(allow_partial_eval=True)) check_partial_function_output_keys(vm.VM_Linker(allow_partial_eval=True, use_cloop=False))
check_partial_function_output_keys('cvm') check_partial_function_output_keys('cvm')
...@@ -242,7 +242,7 @@ def test_partial_function_with_updates(): ...@@ -242,7 +242,7 @@ def test_partial_function_with_updates():
assert g(40, output_subset=[]) == [] assert g(40, output_subset=[]) == []
assert y.get_value() == 10 assert y.get_value() == 10
check_updates(vm.VM_Linker(allow_partial_eval=True)) check_updates(vm.VM_Linker(allow_partial_eval=True, use_cloop=False))
check_updates('cvm') check_updates('cvm')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论