mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
add 'GetOutputInfos' and 'GetInputInfos' interface (#232)
add GetOutputInfos GetInputInfos
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
#include "fastdeploy/fastdeploy_runtime.h"
|
||||
|
||||
#include "fastdeploy/utils/unique_ptr.h"
|
||||
#include "fastdeploy/utils/utils.h"
|
||||
|
||||
@@ -297,6 +298,14 @@ TensorInfo Runtime::GetOutputInfo(int index) {
|
||||
return backend_->GetOutputInfo(index);
|
||||
}
|
||||
|
||||
std::vector<TensorInfo> Runtime::GetInputInfos() {
|
||||
return backend_->GetInputInfos();
|
||||
}
|
||||
|
||||
std::vector<TensorInfo> Runtime::GetOutputInfos() {
|
||||
return backend_->GetOutputInfos();
|
||||
}
|
||||
|
||||
bool Runtime::Infer(std::vector<FDTensor>& input_tensors,
|
||||
std::vector<FDTensor>* output_tensors) {
|
||||
return backend_->Infer(input_tensors, output_tensors);
|
||||
|
Reference in New Issue
Block a user