添加静态图的create_predictor

This commit is contained in:
WenmuZhou 2020-10-22 19:03:24 +08:00
parent 60711bafe2
commit 6241b8f9ca
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ def create_predictor(args, mode, logger):
if model_dir is None:
logger.info("not find {} model file path {}".format(mode, model_dir))
sys.exit(0)
model_file_path = model_dir + "/__model__"
params_file_path = model_dir + "/__variables__"
model_file_path = model_dir + "/model"
params_file_path = model_dir + "/params"
if not os.path.exists(model_file_path):
logger.info("not find model file path {}".format(model_file_path))
sys.exit(0)