We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae69f0b commit 4b957afCopy full SHA for 4b957af
python/paddle/v2/fluid/tests/book/test_recognize_digits.py
@@ -155,7 +155,6 @@ def train(nn_type, use_cuda, parallel, save_dirname, save_param_filename):
155
float(avg_loss_val), float(acc_val)))
156
if math.isnan(float(avg_loss_val)):
157
sys.exit("got NaN loss, training failed.")
158
- exit(0)
159
raise AssertionError("Loss of recognize digits is too large")
160
161
@@ -231,14 +230,10 @@ def __impl__(self):
231
230
232
233
def inject_all_tests():
234
- for use_cuda in [True]:
235
- for parallel in [True]:
236
- for nn_type in ['mlp']:
+ for use_cuda in (False, True):
+ for parallel in (False, True):
+ for nn_type in ('mlp', 'conv'):
237
inject_test_method(use_cuda, parallel, nn_type, True)
238
- # for use_cuda in (False, True):
239
- # for parallel in (False, True):
240
- # for nn_type in ('mlp', 'conv'):
241
- # inject_test_method(use_cuda, parallel, nn_type, True)
242
243
# One unit-test for saving parameters as separate files
244
inject_test_method(False, False, 'mlp', False)
0 commit comments