From 4d90850edb4ebb6977214259776f320ac847bd48 Mon Sep 17 00:00:00 2001 From: wanghuancoder Date: Fri, 16 Jul 2021 17:42:17 +0800 Subject: [PATCH] All new design exec3 (#34213) * runtimecontext * ExecutionContextV2 * refine * refine * pass test * fix bug * fix bug --- paddle/fluid/framework/new_exec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/new_exec.h b/paddle/fluid/framework/new_exec.h index 1ce87ecc93..2c4ff7588e 100644 --- a/paddle/fluid/framework/new_exec.h +++ b/paddle/fluid/framework/new_exec.h @@ -86,9 +86,9 @@ class ExecutionContextV2 : public ExecutionContext { std::vector InNameList() const { std::vector vec_temp; - vec_temp.reserve(ctx_.output_name_map.size()); + vec_temp.reserve(ctx_.input_name_map.size()); - for (auto& input : ctx_.output_name_map) { + for (auto& input : ctx_.input_name_map) { vec_temp.push_back(input.first); } -- GitLab