提交 dee9ca28 authored 作者: Frederic Bastien's avatar Frederic Bastien

Update a test as the graph string changed.

上级 1994dbbc
...@@ -643,73 +643,70 @@ def test_scan_debugprint5(): ...@@ -643,73 +643,70 @@ def test_scan_debugprint5():
| |Subtensor{::int64} [id BL] '' | |Subtensor{::int64} [id BL] ''
| | |IncSubtensor{Inc;int64::} [id BM] '' | | |IncSubtensor{Inc;int64::} [id BM] ''
| | | |Elemwise{second,no_inplace} [id BN] '' | | | |Elemwise{second,no_inplace} [id BN] ''
| | | | |for{cpu,scan_fn} [id BO] '' | | | | |for{cpu,scan_fn} [id F] ''
| | | | | |k [id G] | | | | |InplaceDimShuffle{x,x} [id BO] ''
| | | | | |IncSubtensor{Set;:int64:} [id H] '' | | | | |TensorConstant{0.0} [id BP]
| | | | | |A [id P] | | | |IncSubtensor{Inc;int64} [id BQ] ''
| | | | |InplaceDimShuffle{x,x} [id BP] '' | | | | |Elemwise{second,no_inplace} [id BR] ''
| | | | |TensorConstant{0.0} [id BQ] | | | | | |Subtensor{int64::} [id BS] ''
| | | |IncSubtensor{Inc;int64} [id BR] '' | | | | | | |for{cpu,scan_fn} [id F] ''
| | | | |Elemwise{second,no_inplace} [id BS] '' | | | | | | |Constant{1} [id BT]
| | | | | |Subtensor{int64::} [id BT] '' | | | | | |InplaceDimShuffle{x,x} [id BU] ''
| | | | | | |for{cpu,scan_fn} [id BO] '' | | | | | |TensorConstant{0.0} [id BP]
| | | | | | |Constant{1} [id BU] | | | | |Elemwise{second} [id BV] ''
| | | | | |InplaceDimShuffle{x,x} [id BV] '' | | | | | |Subtensor{int64} [id BW] ''
| | | | | |TensorConstant{0.0} [id BQ] | | | | | | |Subtensor{int64::} [id BS] ''
| | | | |Elemwise{second} [id BW] '' | | | | | | |Constant{-1} [id BX]
| | | | | |Subtensor{int64} [id BX] '' | | | | | |InplaceDimShuffle{x} [id BY] ''
| | | | | | |Subtensor{int64::} [id BT] '' | | | | | |Elemwise{second,no_inplace} [id BZ] ''
| | | | | | |Constant{-1} [id BY] | | | | | |Sum{acc_dtype=float64} [id CA] ''
| | | | | |InplaceDimShuffle{x} [id BZ] '' | | | | | | |Subtensor{int64} [id BW] ''
| | | | | |Elemwise{second,no_inplace} [id CA] ''
| | | | | |Sum{acc_dtype=float64} [id CB] ''
| | | | | | |Subtensor{int64} [id BX] ''
| | | | | |TensorConstant{1.0} [id R] | | | | | |TensorConstant{1.0} [id R]
| | | | |Constant{-1} [id BY] | | | | |Constant{-1} [id BX]
| | | |Constant{1} [id BU] | | | |Constant{1} [id BT]
| | |Constant{-1} [id CC] | | |Constant{-1} [id CB]
| |Alloc [id CD] '' | |Alloc [id CC] ''
| | |TensorConstant{0.0} [id BQ] | | |TensorConstant{0.0} [id BP]
| | |Elemwise{add,no_inplace} [id CE] '' | | |Elemwise{add,no_inplace} [id CD] ''
| | | |Elemwise{sub,no_inplace} [id C] '' | | | |Elemwise{sub,no_inplace} [id C] ''
| | | |TensorConstant{1} [id Y] | | | |TensorConstant{1} [id Y]
| | |Subtensor{int64} [id CF] '' | | |Subtensor{int64} [id CE] ''
| | |Shape [id CG] '' | | |Shape [id CF] ''
| | | |A [id P] | | | |A [id P]
| | |Constant{0} [id CH] | | |Constant{0} [id CG]
| |A [id P] | |A [id P]
|Constant{-1} [id CI] |Constant{-1} [id CH]
Inner graphs of the scan ops: Inner graphs of the scan ops:
for{cpu,grad_of_scan_fn}.1 [id B] '' for{cpu,grad_of_scan_fn}.1 [id B] ''
>Elemwise{add,no_inplace} [id CJ] '' >Elemwise{add,no_inplace} [id CI] ''
> |Elemwise{mul} [id CK] '' > |Elemwise{mul} [id CJ] ''
> | |<TensorType(float64, vector)> [id CL] -> [id BL] > | |<TensorType(float64, vector)> [id CK] -> [id BL]
> | |A_copy [id CM] -> [id P] > | |A_copy [id CL] -> [id P]
> |<TensorType(float64, vector)> [id CN] -> [id BL] > |<TensorType(float64, vector)> [id CM] -> [id BL]
>Elemwise{add,no_inplace} [id CO] '' >Elemwise{add,no_inplace} [id CN] ''
> |Elemwise{mul} [id CP] '' > |Elemwise{mul} [id CO] ''
> | |<TensorType(float64, vector)> [id CL] -> [id BL] > | |<TensorType(float64, vector)> [id CK] -> [id BL]
> | |<TensorType(float64, vector)> [id CQ] -> [id Z] > | |<TensorType(float64, vector)> [id CP] -> [id Z]
> |<TensorType(float64, vector)> [id CR] -> [id CD] > |<TensorType(float64, vector)> [id CQ] -> [id CC]
for{cpu,scan_fn} [id F] '' for{cpu,scan_fn} [id F] ''
>Elemwise{mul,no_inplace} [id CS] '' >Elemwise{mul,no_inplace} [id CR] ''
> |<TensorType(float64, vector)> [id CT] -> [id H] > |<TensorType(float64, vector)> [id CS] -> [id H]
> |A_copy [id CU] -> [id P] > |A_copy [id CT] -> [id P]
for{cpu,scan_fn} [id F] '' for{cpu,scan_fn} [id F] ''
>Elemwise{mul,no_inplace} [id CS] '' >Elemwise{mul,no_inplace} [id CR] ''
for{cpu,scan_fn} [id F] '' for{cpu,scan_fn} [id F] ''
>Elemwise{mul,no_inplace} [id CS] '' >Elemwise{mul,no_inplace} [id CR] ''
for{cpu,scan_fn} [id BO] '' for{cpu,scan_fn} [id F] ''
>Elemwise{mul,no_inplace} [id CS] '' >Elemwise{mul,no_inplace} [id CR] ''
for{cpu,scan_fn} [id BO] '' for{cpu,scan_fn} [id F] ''
>Elemwise{mul,no_inplace} [id CS] ''""" >Elemwise{mul,no_inplace} [id CR] ''"""
for truth, out in zip(expected_output.split("\n"), lines): for truth, out in zip(expected_output.split("\n"), lines):
assert truth.strip() == out.strip() assert truth.strip() == out.strip()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论