mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-17 14:11:14 +08:00
[Runtime]FDTensor pybind add from_dlpack interface (#1001)
add from_dlpack
This commit is contained in:
@@ -214,7 +214,8 @@ void BindRuntime(pybind11::module& m) {
|
||||
.def("infer",
|
||||
[](Runtime& self, std::vector<FDTensor>& inputs) {
|
||||
std::vector<FDTensor> outputs;
|
||||
return self.Infer(inputs, &outputs);
|
||||
self.Infer(inputs, &outputs);
|
||||
return outputs;
|
||||
})
|
||||
.def("bind_input_tensor", &Runtime::BindInputTensor)
|
||||
.def("infer", [](Runtime& self) { self.Infer(); })
|
||||
|
Reference in New Issue
Block a user