添加静态图的create_predictor
This commit is contained in:
parent
60711bafe2
commit
6241b8f9ca
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue