Closed chrischoy closed 2 years ago
Patch for this error
From 7d14735d025a7e50b954cdefa56985f7d41c3532 Mon Sep 17 00:00:00 2001
From: Chris Choy <cchoy@nvidia.com>
Date: Wed, 27 Oct 2021 03:06:17 +0000
Subject: [PATCH] fix
---
pybind/extern.hpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pybind/extern.hpp b/pybind/extern.hpp
index b9f9247..8af002b 100644
--- a/pybind/extern.hpp
+++ b/pybind/extern.hpp
@@ -757,7 +757,11 @@ void initialize_non_templated_classes(py::module &m) {
minkowski::coordinate_map_key_type const &)) &
minkowski::CoordinateMapKey::set_key)
.def("get_tensor_stride", &minkowski::CoordinateMapKey::get_tensor_stride)
- .def(py::self == py::self);
+ .def("__eq__", [](const minkowski::CoordinateMapKey &self, const minkowski::CoordinateMapKey &other)
+ {
+ return self == other;
+ });
+ //.def(py::self == py::self);
}
template <typename manager_type>
--
2.25.1
Save the above text into fix.patch
. Then, apply this patch to the Minkowski Engine
git am < fix.patch
During the installation, pybind11 does not recognize the equality operator and fails on a very rare case.
Desktop (please complete the following information):
python -c "import MinkowskiEngine as ME; ME.print_diagnostics()"
. Otherwise, paste the output of the following command.)