@@ -62,9 +62,10 @@ def test_debugprint_sitsot():
62
62
Scan{scan_fn, while_loop=False, inplace=none} [id C]
63
63
← Mul [id W] (inner_out_sit_sot-0)
64
64
├─ *0-<Vector(float64, shape=(?,))> [id X] -> [id E] (inner_in_sit_sot-0)
65
- └─ *1-<Vector(float64, shape=(?,))> [id Y] -> [id M] (inner_in_non_seqs-0)"""
65
+ └─ *1-<Vector(float64, shape=(?,))> [id Y] -> [id M] (inner_in_non_seqs-0)
66
+ """
66
67
67
- for truth , out in zip (expected_output .split ("\n " ), lines , strict = False ):
68
+ for truth , out in zip (expected_output .split ("\n " ), lines , strict = True ):
68
69
assert truth .strip () == out .strip ()
69
70
70
71
@@ -120,9 +121,10 @@ def test_debugprint_sitsot_no_extra_info():
120
121
Scan{scan_fn, while_loop=False, inplace=none} [id C]
121
122
← Mul [id W]
122
123
├─ *0-<Vector(float64, shape=(?,))> [id X] -> [id E]
123
- └─ *1-<Vector(float64, shape=(?,))> [id Y] -> [id M]"""
124
+ └─ *1-<Vector(float64, shape=(?,))> [id Y] -> [id M]
125
+ """
124
126
125
- for truth , out in zip (expected_output .split ("\n " ), lines , strict = False ):
127
+ for truth , out in zip (expected_output .split ("\n " ), lines , strict = True ):
126
128
assert truth .strip () == out .strip ()
127
129
128
130
@@ -188,9 +190,10 @@ def test_debugprint_nitsot():
188
190
├─ *0-<Scalar(float64, shape=())> [id Y] -> [id S] (inner_in_seqs-0)
189
191
└─ Pow [id Z]
190
192
├─ *2-<Scalar(float64, shape=())> [id BA] -> [id W] (inner_in_non_seqs-0)
191
- └─ *1-<Scalar(int64, shape=())> [id BB] -> [id U] (inner_in_seqs-1)"""
193
+ └─ *1-<Scalar(int64, shape=())> [id BB] -> [id U] (inner_in_seqs-1)
194
+ """
192
195
193
- for truth , out in zip (expected_output .split ("\n " ), lines , strict = False ):
196
+ for truth , out in zip (expected_output .split ("\n " ), lines , strict = True ):
194
197
assert truth .strip () == out .strip ()
195
198
196
199
@@ -303,9 +306,10 @@ def compute_A_k(A, k):
303
306
Scan{scan_fn, while_loop=False, inplace=none} [id BE]
304
307
← Mul [id CA] (inner_out_sit_sot-0)
305
308
├─ *0-<Vector(float64, shape=(?,))> [id CB] -> [id BG] (inner_in_sit_sot-0)
306
- └─ *1-<Vector(float64, shape=(?,))> [id CC] -> [id BO] (inner_in_non_seqs-0)"""
309
+ └─ *1-<Vector(float64, shape=(?,))> [id CC] -> [id BO] (inner_in_non_seqs-0)
310
+ """
307
311
308
- for truth , out in zip (expected_output .split ("\n " ), lines , strict = False ):
312
+ for truth , out in zip (expected_output .split ("\n " ), lines , strict = True ):
309
313
assert truth .strip () == out .strip ()
310
314
311
315
fg = FunctionGraph ([c , k , A ], [final_result ])
@@ -402,9 +406,10 @@ def compute_A_k(A, k):
402
406
→ *1-<Vector(float64, shape=(?,))> [id CB] -> [id BA] (inner_in_non_seqs-0)
403
407
← Mul [id CC] (inner_out_sit_sot-0)
404
408
├─ *0-<Vector(float64, shape=(?,))> [id CA] (inner_in_sit_sot-0)
405
- └─ *1-<Vector(float64, shape=(?,))> [id CB] (inner_in_non_seqs-0)"""
409
+ └─ *1-<Vector(float64, shape=(?,))> [id CB] (inner_in_non_seqs-0)
410
+ """
406
411
407
- for truth , out in zip (expected_output .split ("\n " ), lines , strict = False ):
412
+ for truth , out in zip (expected_output .split ("\n " ), lines , strict = True ):
408
413
assert truth .strip () == out .strip ()
409
414
410
415
@@ -477,9 +482,10 @@ def fn(a_m2, a_m1, b_m2, b_m1):
477
482
└─ *0-<Scalar(int64, shape=())> [id BD] -> [id E] (inner_in_mit_sot-0-0)
478
483
← Add [id BE] (inner_out_mit_sot-1)
479
484
├─ *3-<Scalar(int64, shape=())> [id BF] -> [id O] (inner_in_mit_sot-1-1)
480
- └─ *2-<Scalar(int64, shape=())> [id BG] -> [id O] (inner_in_mit_sot-1-0)"""
485
+ └─ *2-<Scalar(int64, shape=())> [id BG] -> [id O] (inner_in_mit_sot-1-0)
486
+ """
481
487
482
- for truth , out in zip (expected_output .split ("\n " ), lines , strict = False ):
488
+ for truth , out in zip (expected_output .split ("\n " ), lines , strict = True ):
483
489
assert truth .strip () == out .strip ()
484
490
485
491
@@ -613,9 +619,10 @@ def test_debugprint_mitmot():
613
619
Scan{scan_fn, while_loop=False, inplace=none} [id F]
614
620
← Mul [id CV] (inner_out_sit_sot-0)
615
621
├─ *0-<Vector(float64, shape=(?,))> [id CT] -> [id H] (inner_in_sit_sot-0)
616
- └─ *1-<Vector(float64, shape=(?,))> [id CW] -> [id P] (inner_in_non_seqs-0)"""
622
+ └─ *1-<Vector(float64, shape=(?,))> [id CW] -> [id P] (inner_in_non_seqs-0)
623
+ """
617
624
618
- for truth , out in zip (expected_output .split ("\n " ), lines , strict = False ):
625
+ for truth , out in zip (expected_output .split ("\n " ), lines , strict = True ):
619
626
assert truth .strip () == out .strip ()
620
627
621
628
0 commit comments