Skip to content

Commit b6c262e

Browse files
authored
fix lod_tensor_array (#5625)
1 parent 2f3d1c3 commit b6c262e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

paddle/pybind/pybind.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ limitations under the License. */
4242
#include "paddle/platform/gpu_info.h"
4343
#endif
4444

45+
// disable auto conversion to list in Python
46+
PYBIND11_MAKE_OPAQUE(paddle::framework::LoDTensorArray);
47+
4548
namespace paddle {
4649
namespace pybind {
4750
static size_t UniqueIntegerGenerator(const std::string &prefix) {

0 commit comments

Comments
 (0)