From e6f480ec448b0dc28bf17ea6f51fb58881ea6531 Mon Sep 17 00:00:00 2001 From: Wojciech Uss Date: Thu, 18 Oct 2018 05:27:56 +0200 Subject: [PATCH] add comment on the default first pass --- paddle/fluid/inference/api/paddle_inference_api.h | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/inference/api/paddle_inference_api.h b/paddle/fluid/inference/api/paddle_inference_api.h index ab4fa820e..07ee6e72d 100644 --- a/paddle/fluid/inference/api/paddle_inference_api.h +++ b/paddle/fluid/inference/api/paddle_inference_api.h @@ -261,6 +261,7 @@ struct AnalysisConfig : public NativeConfig { void SetIncludeMode() { ir_mode = IrPassMode::kInclude; + // this pass has to be run at the beginning of all fuse passes ir_passes = {"infer_clean_graph_pass"}; } -- GitLab