Skip to content
Snippets Groups Projects
Commit e428f123 authored by Maxence Naud's avatar Maxence Naud
Browse files

[Add][fix] Attributes as base class for Reshpae_Op in python binding

parent 95077929
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!81Resolve "Cannot get attribute of Reshape_Op in Python"
......@@ -18,7 +18,7 @@ namespace py = pybind11;
namespace Aidge {
void init_Reshape(py::module& m) {
py::class_<Reshape_Op, std::shared_ptr<Reshape_Op>, OperatorTensor>(m, "ReshapeOp", py::multiple_inheritance())
py::class_<Reshape_Op, std::shared_ptr<Reshape_Op>, Attributes, OperatorTensor>(m, "ReshapeOp", py::multiple_inheritance())
.def("get_inputs_name", &Reshape_Op::getInputsName)
.def("get_outputs_name", &Reshape_Op::getOutputsName);
......
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