Closed ghost closed 5 years ago
Maybe you can find the intel internal help https://github.com/PaddlePaddle/Paddle/issues/14342#issuecomment-438538424
We solved it by fluid.io.save_inference_model(args.save_model_dir, ["pixel","label"], fetch_vars, exe, main_program=inference_program) . fetch_vars is declared earlier in train.py, fetch_vars = [sum_cost] + error_evaluator.metrics
fluid.io.save_inference_model(args.save_model_dir,["image","label"],test_seq_error,exe,main_program=inference_program)
但运行有错误 ValueError: 'target_vars' should be a list of Variable. 也尝试了 fluid.io.save_inference_model(args.save_model_dir,["image","label"],[test_seq_error[0]],exe,main_program=inference_program),还是一样的错误,请问怎么存啊?