From 79bcb678e3d7649245bf19a5c3d96742eeeb6f5f Mon Sep 17 00:00:00 2001 From: Axel Farrugia <axel.farrugia@cea.fr> Date: Thu, 14 Nov 2024 11:20:03 +0100 Subject: [PATCH] feat : Binding of get_data_format_transpose() --- python_binding/data/pybind_Data.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python_binding/data/pybind_Data.cpp b/python_binding/data/pybind_Data.cpp index b1e879d83..cdf8cc232 100644 --- a/python_binding/data/pybind_Data.cpp +++ b/python_binding/data/pybind_Data.cpp @@ -10,6 +10,7 @@ ********************************************************************************/ #include <pybind11/pybind11.h> +#include <pybind11/stl.h> #include "aidge/data/Data.hpp" @@ -65,6 +66,7 @@ void init_Data(py::module& m){ m.def("format_as", (const char* (*)(DataType)) &format_as, py::arg("dt")); m.def("format_as", (const char* (*)(DataFormat)) &format_as, py::arg("df")); + m.def("get_data_format_transpose", &getDataFormatTranspose, py::arg("src"), py::arg("dst")); } } -- GitLab