diff --git a/x2paddle/core/program.py b/x2paddle/core/program.py index 6da3476e18c0cd09f68bbb96abb3753f27bf405e..74ce1e446f7ce6d9bf8f93da89bc557fefb843ed 100644 --- a/x2paddle/core/program.py +++ b/x2paddle/core/program.py @@ -637,4 +637,5 @@ class PaddleGraph(object): if str(e) == "'target_vars' should be a list of Variable.": print("[DyGraph2StaticGraph Error] Can not convert the dygraph to static! The output of PyTorch mustbe Variable or a list of Variable.") else: - print(e) \ No newline at end of file + print(e) + exit(0) \ No newline at end of file