mirror of
https://github.com/nomic-ai/kompute.git
synced 2026-05-11 17:09:59 +00:00
Updated to add opbase
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user