Updated to add opbase
This commit is contained in:
parent
0e9ba00b71
commit
6afe6463c2
1 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,10 @@ PYBIND11_MODULE(komputepy, m) {
|
|||
.def(py::init(
|
||||
[](const std::vector<float>& data, kp::Tensor::TensorTypes tensorTypes) {
|
||||
return std::unique_ptr<kp::Tensor>(new kp::Tensor(data, tensorTypes));
|
||||
}));
|
||||
}))
|
||||
.def("data", &kp::Tensor::data);
|
||||
|
||||
py::class_<kp::OpBase>(m, "OpBase");
|
||||
|
||||
#ifdef VERSION_INFO
|
||||
m.attr("__version__") = VERSION_INFO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue