From 2b4977f20cbe962599c55ab57c99f0c2043bf478 Mon Sep 17 00:00:00 2001 From: pangyoki Date: Mon, 23 May 2022 11:19:54 +0800 Subject: [PATCH] fix final_state_linear (#42820) --- paddle/fluid/pybind/eager_custom_python_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/pybind/eager_custom_python_api.h b/paddle/fluid/pybind/eager_custom_python_api.h index c509ab56749..99ec4212918 100644 --- a/paddle/fluid/pybind/eager_custom_python_api.h +++ b/paddle/fluid/pybind/eager_custom_python_api.h @@ -65,7 +65,7 @@ static PyObject *eager_api_final_state_linear(PyObject *self, PyObject *args, if (bias.initialized()) { auto mm_out = matmul_final_state_dygraph_function(x, weight, false, false); - auto out = add_final_state_dygraph_function(bias, mm_out); + auto out = add_final_state_dygraph_function(mm_out, bias); PyEval_RestoreThread(tstate); tstate = nullptr; return ToPyObject(out); -- GitLab