diff --git a/paddle/fluid/operators/cinn_launch_op.h b/paddle/fluid/operators/cinn_launch_op.h index 858baffcac3584744532a29966877976a34fa790..e1b24293f840ff904dcdeea2062841e2525e5e96 100644 --- a/paddle/fluid/operators/cinn_launch_op.h +++ b/paddle/fluid/operators/cinn_launch_op.h @@ -197,7 +197,7 @@ class CinnLaunchOpKernel : public framework::OpKernel { if (!temp_variable_names.empty()) { auto temp_cinn_tensors = details::GetCinnTensorsFromCompiledScope( temp_variable_names, cinn_scope); - for (auto i = 0; i < output_variable_names.size(); ++i) { + for (auto i = 0; i < temp_variable_names.size(); ++i) { const auto& var_name = temp_variable_names.at(i); auto* tensor = temp_scope->Var(var_name)->GetMutable(); details::TensorMutableDataWithCinnInfo(place, temp_cinn_tensors.at(i),