Created by: Superjomn
config = paddle.InferAnalysisConfig() config.set_model(xxx) config.enable_use_gpu(1<<20, 0) paddle.Executor executor(infer_config=config) for data in datas: res = executor.run(infer_inputs=data)