@@ -58,8 +58,8 @@ def test_debugprint_sitsot():
58
58
59
59
for{cpu,scan_fn} [id C] (outer_out_sit_sot-0)
60
60
>Elemwise{mul,no_inplace} [id W] (inner_out_sit_sot-0)
61
- > |*0-<TensorType(float64, (None ,))> [id X] -> [id E] (inner_in_sit_sot-0)
62
- > |*1-<TensorType(float64, (None ,))> [id Y] -> [id M] (inner_in_non_seqs-0)"""
61
+ > |*0-<TensorType(float64, (? ,))> [id X] -> [id E] (inner_in_sit_sot-0)
62
+ > |*1-<TensorType(float64, (? ,))> [id Y] -> [id M] (inner_in_non_seqs-0)"""
63
63
64
64
for truth , out in zip (expected_output .split ("\n " ), lines ):
65
65
assert truth .strip () == out .strip ()
@@ -113,8 +113,8 @@ def test_debugprint_sitsot_no_extra_info():
113
113
114
114
for{cpu,scan_fn} [id C]
115
115
>Elemwise{mul,no_inplace} [id W]
116
- > |*0-<TensorType(float64, (None ,))> [id X] -> [id E]
117
- > |*1-<TensorType(float64, (None ,))> [id Y] -> [id M]"""
116
+ > |*0-<TensorType(float64, (? ,))> [id X] -> [id E]
117
+ > |*1-<TensorType(float64, (? ,))> [id Y] -> [id M]"""
118
118
119
119
for truth , out in zip (expected_output .split ("\n " ), lines ):
120
120
assert truth .strip () == out .strip ()
@@ -264,7 +264,7 @@ def compute_A_k(A, k):
264
264
> | | | | | | | |Unbroadcast{0} [id BL]
265
265
> | | | | | | | |InplaceDimShuffle{x,0} [id BM]
266
266
> | | | | | | | |Elemwise{second,no_inplace} [id BN]
267
- > | | | | | | | |*2-<TensorType(float64, (None ,))> [id BO] -> [id W] (inner_in_non_seqs-0)
267
+ > | | | | | | | |*2-<TensorType(float64, (? ,))> [id BO] -> [id W] (inner_in_non_seqs-0)
268
268
> | | | | | | | |InplaceDimShuffle{x} [id BP]
269
269
> | | | | | | | |TensorConstant{1.0} [id BQ]
270
270
> | | | | | | |ScalarConstant{0} [id BR]
@@ -275,16 +275,16 @@ def compute_A_k(A, k):
275
275
> | | | | |Unbroadcast{0} [id BL]
276
276
> | | | | |ScalarFromTensor [id BV]
277
277
> | | | | |Subtensor{int64} [id BJ]
278
- > | | | |*2-<TensorType(float64, (None ,))> [id BO] -> [id W] (inner_in_non_seqs-0) (outer_in_non_seqs-0)
278
+ > | | | |*2-<TensorType(float64, (? ,))> [id BO] -> [id W] (inner_in_non_seqs-0) (outer_in_non_seqs-0)
279
279
> | | |ScalarConstant{1} [id BW]
280
280
> | |ScalarConstant{-1} [id BX]
281
281
> |InplaceDimShuffle{x} [id BY]
282
282
> |*1-<TensorType(int64, ())> [id BZ] -> [id U] (inner_in_seqs-1)
283
283
284
284
for{cpu,scan_fn} [id BE] (outer_out_sit_sot-0)
285
285
>Elemwise{mul,no_inplace} [id CA] (inner_out_sit_sot-0)
286
- > |*0-<TensorType(float64, (None ,))> [id CB] -> [id BG] (inner_in_sit_sot-0)
287
- > |*1-<TensorType(float64, (None ,))> [id CC] -> [id BO] (inner_in_non_seqs-0)"""
286
+ > |*0-<TensorType(float64, (? ,))> [id CB] -> [id BG] (inner_in_sit_sot-0)
287
+ > |*1-<TensorType(float64, (? ,))> [id CC] -> [id BO] (inner_in_non_seqs-0)"""
288
288
289
289
for truth , out in zip (expected_output .split ("\n " ), lines ):
290
290
assert truth .strip () == out .strip ()
@@ -334,7 +334,7 @@ def compute_A_k(A, k):
334
334
for{cpu,scan_fn} [id E] (outer_out_nit_sot-0)
335
335
-*0-<TensorType(float64, ())> [id Y] -> [id U] (inner_in_seqs-0)
336
336
-*1-<TensorType(int64, ())> [id Z] -> [id W] (inner_in_seqs-1)
337
- -*2-<TensorType(float64, (None ,))> [id BA] -> [id C] (inner_in_non_seqs-0)
337
+ -*2-<TensorType(float64, (? ,))> [id BA] -> [id C] (inner_in_non_seqs-0)
338
338
-*3-<TensorType(int32, ())> [id BB] -> [id B] (inner_in_non_seqs-1)
339
339
>Elemwise{mul,no_inplace} [id BC] (inner_out_nit_sot-0)
340
340
> |InplaceDimShuffle{x} [id BD]
@@ -353,7 +353,7 @@ def compute_A_k(A, k):
353
353
> | | | | | | | |Unbroadcast{0} [id BN]
354
354
> | | | | | | | |InplaceDimShuffle{x,0} [id BO]
355
355
> | | | | | | | |Elemwise{second,no_inplace} [id BP]
356
- > | | | | | | | |*2-<TensorType(float64, (None ,))> [id BA] (inner_in_non_seqs-0)
356
+ > | | | | | | | |*2-<TensorType(float64, (? ,))> [id BA] (inner_in_non_seqs-0)
357
357
> | | | | | | | |InplaceDimShuffle{x} [id BQ]
358
358
> | | | | | | | |TensorConstant{1.0} [id BR]
359
359
> | | | | | | |ScalarConstant{0} [id BS]
@@ -364,18 +364,18 @@ def compute_A_k(A, k):
364
364
> | | | | |Unbroadcast{0} [id BN]
365
365
> | | | | |ScalarFromTensor [id BW]
366
366
> | | | | |Subtensor{int64} [id BL]
367
- > | | | |*2-<TensorType(float64, (None ,))> [id BA] (inner_in_non_seqs-0) (outer_in_non_seqs-0)
367
+ > | | | |*2-<TensorType(float64, (? ,))> [id BA] (inner_in_non_seqs-0) (outer_in_non_seqs-0)
368
368
> | | |ScalarConstant{1} [id BX]
369
369
> | |ScalarConstant{-1} [id BY]
370
370
> |InplaceDimShuffle{x} [id BZ]
371
371
> |*1-<TensorType(int64, ())> [id Z] (inner_in_seqs-1)
372
372
373
373
for{cpu,scan_fn} [id BH] (outer_out_sit_sot-0)
374
- -*0-<TensorType(float64, (None ,))> [id CA] -> [id BI] (inner_in_sit_sot-0)
375
- -*1-<TensorType(float64, (None ,))> [id CB] -> [id BA] (inner_in_non_seqs-0)
374
+ -*0-<TensorType(float64, (? ,))> [id CA] -> [id BI] (inner_in_sit_sot-0)
375
+ -*1-<TensorType(float64, (? ,))> [id CB] -> [id BA] (inner_in_non_seqs-0)
376
376
>Elemwise{mul,no_inplace} [id CC] (inner_out_sit_sot-0)
377
- > |*0-<TensorType(float64, (None ,))> [id CA] (inner_in_sit_sot-0)
378
- > |*1-<TensorType(float64, (None ,))> [id CB] (inner_in_non_seqs-0)"""
377
+ > |*0-<TensorType(float64, (? ,))> [id CA] (inner_in_sit_sot-0)
378
+ > |*1-<TensorType(float64, (? ,))> [id CB] (inner_in_non_seqs-0)"""
379
379
380
380
for truth , out in zip (expected_output .split ("\n " ), lines ):
381
381
assert truth .strip () == out .strip ()
@@ -413,7 +413,7 @@ def fn(a_m2, a_m1, b_m2, b_m1):
413
413
| | | | |Subtensor{int64} [id H]
414
414
| | | | |Shape [id I]
415
415
| | | | | |Subtensor{:int64:} [id J]
416
- | | | | | |<TensorType(int64, (None ,))> [id K]
416
+ | | | | | |<TensorType(int64, (? ,))> [id K]
417
417
| | | | | |ScalarConstant{2} [id L]
418
418
| | | | |ScalarConstant{0} [id M]
419
419
| | | |Subtensor{:int64:} [id J]
@@ -426,7 +426,7 @@ def fn(a_m2, a_m1, b_m2, b_m1):
426
426
| | | |Subtensor{int64} [id R]
427
427
| | | |Shape [id S]
428
428
| | | | |Subtensor{:int64:} [id T]
429
- | | | | |<TensorType(int64, (None ,))> [id U]
429
+ | | | | |<TensorType(int64, (? ,))> [id U]
430
430
| | | | |ScalarConstant{2} [id V]
431
431
| | | |ScalarConstant{0} [id W]
432
432
| | |Subtensor{:int64:} [id T]
@@ -562,19 +562,19 @@ def test_debugprint_mitmot():
562
562
for{cpu,grad_of_scan_fn}.1 [id B] (outer_out_sit_sot-0)
563
563
>Elemwise{add,no_inplace} [id CM] (inner_out_mit_mot-0-0)
564
564
> |Elemwise{mul} [id CN]
565
- > | |*2-<TensorType(float64, (None ,))> [id CO] -> [id BL] (inner_in_mit_mot-0-0)
566
- > | |*5-<TensorType(float64, (None ,))> [id CP] -> [id P] (inner_in_non_seqs-0)
567
- > |*3-<TensorType(float64, (None ,))> [id CQ] -> [id BL] (inner_in_mit_mot-0-1)
565
+ > | |*2-<TensorType(float64, (? ,))> [id CO] -> [id BL] (inner_in_mit_mot-0-0)
566
+ > | |*5-<TensorType(float64, (? ,))> [id CP] -> [id P] (inner_in_non_seqs-0)
567
+ > |*3-<TensorType(float64, (? ,))> [id CQ] -> [id BL] (inner_in_mit_mot-0-1)
568
568
>Elemwise{add,no_inplace} [id CR] (inner_out_sit_sot-0)
569
569
> |Elemwise{mul} [id CS]
570
- > | |*2-<TensorType(float64, (None ,))> [id CO] -> [id BL] (inner_in_mit_mot-0-0)
571
- > | |*0-<TensorType(float64, (None ,))> [id CT] -> [id Z] (inner_in_seqs-0)
572
- > |*4-<TensorType(float64, (None ,))> [id CU] -> [id CE] (inner_in_sit_sot-0)
570
+ > | |*2-<TensorType(float64, (? ,))> [id CO] -> [id BL] (inner_in_mit_mot-0-0)
571
+ > | |*0-<TensorType(float64, (? ,))> [id CT] -> [id Z] (inner_in_seqs-0)
572
+ > |*4-<TensorType(float64, (? ,))> [id CU] -> [id CE] (inner_in_sit_sot-0)
573
573
574
574
for{cpu,scan_fn} [id F] (outer_out_sit_sot-0)
575
575
>Elemwise{mul,no_inplace} [id CV] (inner_out_sit_sot-0)
576
- > |*0-<TensorType(float64, (None ,))> [id CT] -> [id H] (inner_in_sit_sot-0)
577
- > |*1-<TensorType(float64, (None ,))> [id CW] -> [id P] (inner_in_non_seqs-0)"""
576
+ > |*0-<TensorType(float64, (? ,))> [id CT] -> [id H] (inner_in_sit_sot-0)
577
+ > |*1-<TensorType(float64, (? ,))> [id CW] -> [id P] (inner_in_non_seqs-0)"""
578
578
579
579
for truth , out in zip (expected_output .split ("\n " ), lines ):
580
580
assert truth .strip () == out .strip ()
0 commit comments