mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-15 13:10:55 +08:00
@@ -660,7 +660,11 @@ bool Runtime::Infer(std::vector<FDTensor>& input_tensors,
|
||||
}
|
||||
|
||||
bool Runtime::Infer() {
|
||||
return backend_->Infer(input_tensors_, &output_tensors_, false);
|
||||
bool result = backend_->Infer(input_tensors_, &output_tensors_, false);
|
||||
for (auto& tensor : output_tensors_) {
|
||||
tensor.device_id = option.device_id;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
void Runtime::BindInputTensor(const std::string& name, FDTensor& input) {
|
||||
|
Reference in New Issue
Block a user