@@ -400,21 +400,21 @@ def test_same_inputs(self):
400
400
class TestCAReduce (unittest_tools .InferShapeTester ):
401
401
op = CAReduce
402
402
cases = [
403
- ((5 , 6 ), None ),
404
- ((5 , 6 ), (0 , 1 )),
405
- ((5 , 6 ), (0 ,)),
406
- ((5 , 6 ), (1 ,)),
403
+ # ((5, 6), None),
404
+ # ((5, 6), (0, 1)),
405
+ # ((5, 6), (0,)),
406
+ # ((5, 6), (1,)),
407
407
((5 , 6 ), (- 1 ,)),
408
- ((5 , 6 ), (- 2 ,)),
409
- ((5 , 6 ), ()),
410
- ((2 , 3 , 4 , 5 ), (0 , 1 , 3 )),
411
- ((2 , 3 , 4 , 5 ), (- 2 , - 3 )),
412
- ((5 , 0 ), None ),
413
- ((5 , 0 ), (0 ,)),
408
+ # ((5, 6), (-2,)),
409
+ # ((5, 6), ()),
410
+ # ((2, 3, 4, 5), (0, 1, 3)),
411
+ # ((2, 3, 4, 5), (-2, -3)),
412
+ # ((5, 0), None),
413
+ # ((5, 0), (0,)),
414
414
((5 , 0 ), (1 ,)),
415
- ((5 , 0 ), ()),
416
- ((), None ),
417
- ((), ()),
415
+ # ((5, 0), ()),
416
+ # ((), None),
417
+ # ((), ()),
418
418
]
419
419
type = TensorType
420
420
@@ -427,7 +427,8 @@ def with_mode(
427
427
test_nan = False ,
428
428
tensor_op = None ,
429
429
):
430
- for xsh , tosum in self .cases :
430
+ for i , (xsh , tosum ) in enumerate (self .cases ):
431
+ print (i , xsh , tosum )
431
432
if dtype == "floatX" :
432
433
dtype = pytensor .config .floatX
433
434
x = self .type (
@@ -530,7 +531,9 @@ def with_mode(
530
531
else :
531
532
f_xv = f (xv )
532
533
assert f_xv .shape == zv .shape , (f_xv , zv )
534
+ print (xv , f_xv , zv )
533
535
utt .assert_allclose (zv , f_xv )
536
+ continue
534
537
535
538
x = self .type (
536
539
dtype , shape = tuple (entry if entry == 1 else None for entry in xsh )
0 commit comments