File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
python/paddle/fluid/tests/unittests Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import unittest
18
18
import numpy as np
19
+ import six
19
20
from op_test import OpTest
20
21
21
22
@@ -62,17 +63,20 @@ def test_check_grad_3_ignore_alpha(self):
62
63
63
64
64
65
# TODO(minqiyang): Resume these test cases after fixing Python3 CI job issues
65
- # class TestCase1(PReluTest):
66
- # def initTestCase(self):
67
- # self.attrs = {'mode': "all"}
66
+ if six .PY2 :
68
67
69
- # class TestCase2(PReluTest):
70
- # def initTestCase(self):
71
- # self.attrs = {'mode': "channel"}
68
+ class TestCase1 (PReluTest ):
69
+ def initTestCase (self ):
70
+ self .attrs = {'mode' : "all" }
71
+
72
+ class TestCase2 (PReluTest ):
73
+ def initTestCase (self ):
74
+ self .attrs = {'mode' : "channel" }
75
+
76
+ class TestCase3 (PReluTest ):
77
+ def initTestCase (self ):
78
+ self .attrs = {'mode' : "element" }
72
79
73
- # class TestCase3(PReluTest):
74
- # def initTestCase(self):
75
- # self.attrs = {'mode': "element"}
76
80
77
81
if __name__ == "__main__" :
78
82
unittest .main ()
You can’t perform that action at this time.
0 commit comments