Skip to content
Snippets Groups Projects
Commit dafd73de authored by Benjamin Halimi's avatar Benjamin Halimi
Browse files

add pybind for abs and mean

parent 7f9d26ea
No related branches found
No related tags found
2 merge requests!318[Upd] release verision 0.5.0,!303Add pybind for Abs and Mean
......@@ -317,6 +317,8 @@ void init_Tensor(py::module& m){
.def(py::self - py::self)
.def(py::self * py::self)
.def(py::self / py::self)
.def("zeros", &Tensor::zeros)
.def("mean", &Tensor::mean)
.def("clone", &Tensor::clone)
.def("sqrt", &Tensor::sqrt)
.def("set_datatype", &Tensor::setDataType, py::arg("datatype"), py::arg("copyCast") = true)
......
......@@ -31,6 +31,7 @@ void init_Operator(py::module&);
void init_OperatorTensor(py::module&);
void init_StaticAnalysis(py::module&);
void init_Abs(py::module&);
void init_Add(py::module&);
void init_And(py::module&);
void init_ArgMax(py::module&);
......@@ -128,6 +129,7 @@ void init_Aidge(py::module& m) {
init_OperatorTensor(m);
init_StaticAnalysis(m);
init_Abs(m);
init_Add(m);
init_And(m);
init_ArgMax(m);
......
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