From bf7b524ecf1315049cc7a6be6964d1400f87270d Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Thu, 14 Mar 2024 22:33:35 +0000 Subject: [PATCH] pybind11: local Shape --- cuvec/src/pybind11.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuvec/src/pybind11.cu b/cuvec/src/pybind11.cu index 064c30b..f8e7fc2 100644 --- a/cuvec/src/pybind11.cu +++ b/cuvec/src/pybind11.cu @@ -9,7 +9,7 @@ PYBIND11_MODULE(cuvec_pybind11, m) { m.doc() = "PyBind11 external module."; - pybind11::bind_vector>(m, "Shape"); + pybind11::bind_vector>(m, "Shape", pybind11::module_local(true)); pybind11::implicitly_convertible>(); PYBIND11_BIND_NDCUVEC(signed char, b); PYBIND11_BIND_NDCUVEC(unsigned char, B);