From e78248ca7c15c24ab3bcfda7175676716c073b2e Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Fri, 28 Feb 2025 17:19:14 +0000 Subject: [PATCH] Fix LRN binding of attributesName. --- python_binding/operator/pybind_LRN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_binding/operator/pybind_LRN.cpp b/python_binding/operator/pybind_LRN.cpp index f802152ba..8807eb040 100644 --- a/python_binding/operator/pybind_LRN.cpp +++ b/python_binding/operator/pybind_LRN.cpp @@ -34,7 +34,7 @@ void init_LRN(py::module& m) { .def_static("attributes_name", []() { std::vector<std::string> result; auto attributes = LRN_Op::attributesName(); - for (size_t i = 0; attributes[i] != nullptr; ++i) { + for (size_t i = 0; i < size(EnumStrings<LRN_Op::Attr>::data); ++i) { result.emplace_back(attributes[i]); } return result; -- GitLab