FastDeploy  latest
Fast & Easy to Deploy!
types_internal.h
Go to the documentation of this file.
1 // Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 
17 #include "fastdeploy/runtime/runtime_option.h"
19 #include <memory>
20 
21 #ifdef ENABLE_VISION
23 #endif
24 
25 
26 typedef struct FD_C_RuntimeOptionWrapper {
27  std::unique_ptr<fastdeploy::RuntimeOption> runtime_option;
29 
30 namespace fastdeploy {
31 std::unique_ptr<fastdeploy::RuntimeOption>&
33  FD_C_RuntimeOptionWrapper* fd_c_runtime_option_wrapper);
34 }
35 
36 #define CHECK_AND_CONVERT_FD_TYPE(TYPENAME, variable_name) \
37  fastdeploy::FD_C_CheckAndConvert##TYPENAME(variable_name)
std::unique_ptr< fastdeploy::RuntimeOption > runtime_option
Definition: types_internal.h:27
Definition: types_internal.h:26
std::unique_ptr< fastdeploy::RuntimeOption > & FD_C_CheckAndConvertRuntimeOptionWrapper(FD_C_RuntimeOptionWrapper *fd_c_runtime_option_wrapper)
Definition: types_internal.cc:20
struct FD_C_RuntimeOptionWrapper FD_C_RuntimeOptionWrapper
Definition: types_internal.cc:17