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

[Hook] Fix hook.

parent f96ccabc
No related branches found
No related tags found
1 merge request!23[Hook] Fix hook.
Pipeline #32689 passed
......@@ -31,11 +31,11 @@ protected:
public:
Hook(std::shared_ptr<Operator> op) : mOperator(op) {}
virtual ~Hook();
virtual ~Hook() = default;
virtual void call() = 0;
};
}
#endif /* Hook_H_ */
\ No newline at end of file
#endif /* Hook_H_ */
......@@ -20,6 +20,7 @@ void init_Operator(py::module& m){
py::class_<Operator, std::shared_ptr<Operator>>(m, "Operator")
.def("output", &Operator::output, py::arg("outputIdx"))
.def("input", &Operator::input, py::arg("inputIdx"))
.def("nb_data_inputs", &Operator::nbDataInputs)
.def("associate_input", &Operator::associateInput, py::arg("inputIdx"), py::arg("data"))
.def("set_datatype", &Operator::setDatatype, py::arg("datatype"))
.def("set_backend", &Operator::setBackend, py::arg("name"))
......
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