Skip to content

Commit 09bca67

Browse files
committed
add check if the model does not save model
test=develop
1 parent e4d8f47 commit 09bca67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/paddle/fluid/tests/book/test_label_semantic_roles.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ def train_loop(main_program):
208208

209209
batch_id = batch_id + 1
210210

211+
raise RuntimeError(
212+
"This model should save_inference_model and return, but not reach here, please check!"
213+
)
214+
211215
if is_local:
212216
train_loop(fluid.default_main_program())
213217
else:

0 commit comments

Comments
 (0)