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

Bind Operator::type() method.

parent 430fb66a
No related branches found
No related tags found
2 merge requests!152Update Aidge export to take a graph view has an argument instead of a...,!137Fix fuse mulAdd (and more ;))
......@@ -41,6 +41,7 @@ void init_Operator(py::module& m){
.def("forward", &Operator::forward)
// py::keep_alive forbide Python to garbage collect the implementation lambda as long as the Operator is not deleted !
.def("set_impl", &Operator::setImpl, py::arg("implementation"), py::keep_alive<1, 2>())
.def("type", &Operator::type)
.def("get_impl", &Operator::getImpl)
.def("get_hook", &Operator::getHook)
.def("add_hook", &Operator::addHook)
......
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