From b6c262e12f041a32c8fd50f7d215a65ed4f22b63 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Tue, 14 Nov 2017 00:53:16 -0600 Subject: [PATCH] fix lod_tensor_array (#5625) --- paddle/pybind/pybind.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paddle/pybind/pybind.cc b/paddle/pybind/pybind.cc index 0f906e0e4..3d8d3f1d2 100644 --- a/paddle/pybind/pybind.cc +++ b/paddle/pybind/pybind.cc @@ -42,6 +42,9 @@ limitations under the License. */ #include "paddle/platform/gpu_info.h" #endif +// disable auto conversion to list in Python +PYBIND11_MAKE_OPAQUE(paddle::framework::LoDTensorArray); + namespace paddle { namespace pybind { static size_t UniqueIntegerGenerator(const std::string &prefix) { -- GitLab