Skip to content

Commit e1b2651

Browse files
authored
revert print in test_layers (#5834)
1 parent 52007ea commit e1b2651

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

python/paddle/v2/fluid/tests/test_layers.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_fit_a_line(self):
2121
self.assertIsNotNone(avg_cost)
2222
program.append_backward(avg_cost)
2323

24-
# print str(program)
24+
print str(program)
2525

2626
def test_recognize_digits_mlp(self):
2727
program = Program()
@@ -50,7 +50,8 @@ def test_recognize_digits_mlp(self):
5050
input=predict, label=label, main_program=program)
5151
avg_cost = layers.mean(x=cost, main_program=program)
5252
self.assertIsNotNone(avg_cost)
53-
# print str(program)
53+
54+
print str(program)
5455

5556
def test_simple_conv2d(self):
5657
program = Program()
@@ -65,7 +66,7 @@ def test_simple_conv2d(self):
6566
filter_size=[4, 4],
6667
main_program=program)
6768

68-
# print str(program)
69+
print str(program)
6970

7071
def test_recognize_digits_conv(self):
7172
program = Program()
@@ -104,7 +105,7 @@ def test_recognize_digits_conv(self):
104105

105106
program.append_backward(avg_cost)
106107

107-
# print str(program)
108+
print str(program)
108109

109110
def test_word_embedding(self):
110111
program = Program()
@@ -165,7 +166,7 @@ def test_word_embedding(self):
165166
avg_cost = layers.mean(x=cost, main_program=program)
166167
self.assertIsNotNone(avg_cost)
167168

168-
# print str(program)
169+
print str(program)
169170

170171
def test_linear_chain_crf(self):
171172
program = Program()
@@ -182,7 +183,7 @@ def test_linear_chain_crf(self):
182183
crf = layers.linear_chain_crf(
183184
input=hidden, label=label, main_program=program)
184185

185-
# print str(program)
186+
print str(program)
186187

187188

188189
if __name__ == '__main__':

0 commit comments

Comments
 (0)