Skip to content
Snippets Groups Projects
Commit e78248ca authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Fix LRN binding of attributesName.

parent f0e41abc
No related branches found
No related tags found
No related merge requests found
Pipeline #66867 passed
...@@ -34,7 +34,7 @@ void init_LRN(py::module& m) { ...@@ -34,7 +34,7 @@ void init_LRN(py::module& m) {
.def_static("attributes_name", []() { .def_static("attributes_name", []() {
std::vector<std::string> result; std::vector<std::string> result;
auto attributes = LRN_Op::attributesName(); 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]); result.emplace_back(attributes[i]);
} }
return result; return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment