@@ -21,7 +21,7 @@ def test_fit_a_line(self):
21
21
self .assertIsNotNone (avg_cost )
22
22
program .append_backward (avg_cost )
23
23
24
- # print str(program)
24
+ print str (program )
25
25
26
26
def test_recognize_digits_mlp (self ):
27
27
program = Program ()
@@ -50,7 +50,8 @@ def test_recognize_digits_mlp(self):
50
50
input = predict , label = label , main_program = program )
51
51
avg_cost = layers .mean (x = cost , main_program = program )
52
52
self .assertIsNotNone (avg_cost )
53
- # print str(program)
53
+
54
+ print str (program )
54
55
55
56
def test_simple_conv2d (self ):
56
57
program = Program ()
@@ -65,7 +66,7 @@ def test_simple_conv2d(self):
65
66
filter_size = [4 , 4 ],
66
67
main_program = program )
67
68
68
- # print str(program)
69
+ print str (program )
69
70
70
71
def test_recognize_digits_conv (self ):
71
72
program = Program ()
@@ -104,7 +105,7 @@ def test_recognize_digits_conv(self):
104
105
105
106
program .append_backward (avg_cost )
106
107
107
- # print str(program)
108
+ print str (program )
108
109
109
110
def test_word_embedding (self ):
110
111
program = Program ()
@@ -165,7 +166,7 @@ def test_word_embedding(self):
165
166
avg_cost = layers .mean (x = cost , main_program = program )
166
167
self .assertIsNotNone (avg_cost )
167
168
168
- # print str(program)
169
+ print str (program )
169
170
170
171
def test_linear_chain_crf (self ):
171
172
program = Program ()
@@ -182,7 +183,7 @@ def test_linear_chain_crf(self):
182
183
crf = layers .linear_chain_crf (
183
184
input = hidden , label = label , main_program = program )
184
185
185
- # print str(program)
186
+ print str (program )
186
187
187
188
188
189
if __name__ == '__main__' :
0 commit comments