prebind output by shareExternalData

This commit is contained in:
wwbitejotunn
2023-02-13 03:11:31 +00:00
parent 59c5fedc36
commit abfa9fd850
8 changed files with 174 additions and 39 deletions

View File

@@ -110,6 +110,7 @@ void BindRuntime(pybind11::module& m) {
return outputs;
})
.def("bind_input_tensor", &Runtime::BindInputTensor)
.def("bind_output_tensor", &Runtime::BindOutputTensor)
.def("infer", [](Runtime& self) { self.Infer(); })
.def("get_output_tensor",
[](Runtime& self, const std::string& name) {