From e8f4a3276643c9c5c2d4a4328fe9c1aaab7a8895 Mon Sep 17 00:00:00 2001 From: Ruibiao Chen Date: Thu, 5 Jan 2023 14:11:22 +0800 Subject: [PATCH] Adjust OP scheduling order for standalone executor (#49561) --- paddle/fluid/framework/new_executor/interpretercore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/framework/new_executor/interpretercore.cc b/paddle/fluid/framework/new_executor/interpretercore.cc index 8d906609a3..4f2a4f48b7 100644 --- a/paddle/fluid/framework/new_executor/interpretercore.cc +++ b/paddle/fluid/framework/new_executor/interpretercore.cc @@ -138,7 +138,7 @@ InterpreterCore::InterpreterCore(const platform::Place& place, Priority lhs_prority = vec_instruction_[lhs].GetPriority(); Priority rhs_prority = vec_instruction_[rhs].GetPriority(); if (lhs_prority == rhs_prority) { - return lhs > rhs; + return lhs < rhs; } return lhs_prority > rhs_prority; }; -- GitLab