print("The Dygraph2Static is failed! The possible reason are:\n"+
"1. The convertor of dygraph2static of current model is not supported yet.\n"+
"2. The convertor of pytorch2paddle is wrong. You can run the code of x2paddle_model.py in your save_dir to check whether the convertor of pytorch2paddle is wrong.\n"+
"The Error is: \n"+
e)
exit(0)
exceptExceptionase:
print("Fail to generate inference model! Problem happend while export inference model from python code '{}';\n".format(coda_path))