@@ -578,7 +578,7 @@ def test_Sum(self):
578
578
self .check (t )
579
579
t = tf .reduce_sum (self .random (3 , 4 , 5 ), reduction_indices = 0 , keep_dims = True )
580
580
self .check (t )
581
- if td ._tf_version [:3 ] < (0 , 12 , 0 ):
581
+ if td ._tf_version [:3 ] >= (0 , 12 , 0 ):
582
582
t = tf .reduce_sum (self .random (3 , 4 , 5 ), axis = [0 , 1 ], keep_dims = True )
583
583
self .check (t )
584
584
t = tf .reduce_sum (self .random (3 , 4 , 5 ), axis = (0 , 1 ), keep_dims = True )
@@ -589,42 +589,42 @@ def test_Sum(self):
589
589
def test_Prod (self ):
590
590
t = tf .reduce_prod (self .random (3 , 4 , 5 ), reduction_indices = [0 , 1 ], keep_dims = True )
591
591
self .check (t )
592
- if td ._tf_version [:3 ] < (0 , 12 , 0 ):
592
+ if td ._tf_version [:3 ] >= (0 , 12 , 0 ):
593
593
t = tf .reduce_prod (self .random (3 , 4 , 5 ), axis = [0 , 1 ], keep_dims = True )
594
594
self .check (t )
595
595
596
596
def test_Min (self ):
597
597
t = tf .reduce_min (self .random (3 , 4 , 5 ), reduction_indices = [0 , 1 ], keep_dims = True )
598
598
self .check (t )
599
- if td ._tf_version [:3 ] < (0 , 12 , 0 ):
599
+ if td ._tf_version [:3 ] >= (0 , 12 , 0 ):
600
600
t = tf .reduce_min (self .random (3 , 4 , 5 ), axis = [0 , 1 ], keep_dims = True )
601
601
self .check (t )
602
602
603
603
def test_Max (self ):
604
604
t = tf .reduce_max (self .random (3 , 4 , 5 ), reduction_indices = [0 , 1 ], keep_dims = True )
605
605
self .check (t )
606
- if td ._tf_version [:3 ] < (0 , 12 , 0 ):
606
+ if td ._tf_version [:3 ] >= (0 , 12 , 0 ):
607
607
t = tf .reduce_max (self .random (3 , 4 , 5 ), axis = [0 , 1 ], keep_dims = True )
608
608
self .check (t )
609
609
610
610
def test_Mean (self ):
611
611
t = tf .reduce_mean (self .random (3 , 4 , 5 ), reduction_indices = [0 , 1 ], keep_dims = True )
612
612
self .check (t )
613
- if td ._tf_version [:3 ] < (0 , 12 , 0 ):
613
+ if td ._tf_version [:3 ] >= (0 , 12 , 0 ):
614
614
t = tf .reduce_mean (self .random (3 , 4 , 5 ), axis = [0 , 1 ], keep_dims = True )
615
615
self .check (t )
616
616
617
617
def test_All (self ):
618
618
t = tf .reduce_all (self .random (3 , 4 , 5 ), reduction_indices = [0 , 1 ], keep_dims = True )
619
619
self .check (t )
620
- if td ._tf_version [:3 ] < (0 , 12 , 0 ):
620
+ if td ._tf_version [:3 ] >= (0 , 12 , 0 ):
621
621
t = tf .reduce_all (self .random (3 , 4 , 5 ), axis = [0 , 1 ], keep_dims = True )
622
622
self .check (t )
623
623
624
624
def test_Any (self ):
625
625
t = tf .reduce_any (self .random (3 , 4 , 5 ), reduction_indices = [0 , 1 ], keep_dims = True )
626
626
self .check (t )
627
- if td ._tf_version [:3 ] < (0 , 12 , 0 ):
627
+ if td ._tf_version [:3 ] >= (0 , 12 , 0 ):
628
628
t = tf .reduce_any (self .random (3 , 4 , 5 ), axis = [0 , 1 ], keep_dims = True )
629
629
self .check (t )
630
630
0 commit comments