FastDeploy
latest
Fast & Easy to Deploy!
|
All C++ FastDeploy APIs are defined inside this namespace. More...
Namespaces | |
benchmark | |
All C++ FastDeploy benchmark profile APIs are defined inside this namespace. | |
function | |
All C++ FDTensor Operation APIs are defined inside this namespace. | |
pipeline | |
All pipeline model APIs are defined inside this namespace. | |
vision | |
All C++ FastDeploy Vision Models APIs are defined inside this namespace. | |
Classes | |
class | FastDeployModel |
Base model object for all the vision models. More... | |
struct | FDTensor |
FDTensor object used to represend data matrix. More... | |
struct | IpuOption |
Option object to configure GraphCore IPU. More... | |
struct | LiteBackendOption |
Option object to configure Paddle Lite backend. More... | |
struct | OpenVINOBackendOption |
Option object to configure OpenVINO backend. More... | |
struct | OrtBackendOption |
Option object to configure ONNX Runtime backend. More... | |
struct | PaddleBackendOption |
Option object to configure Paddle Inference backend. More... | |
struct | PorosBackendOption |
Option object to configure Poros backend. More... | |
struct | Runtime |
Runtime object used to inference the loaded model on different devices. More... | |
struct | RuntimeOption |
Option object used when create a new Runtime object. More... | |
struct | TensorInfo |
Information of Tensor. More... | |
struct | TrtBackendOption |
Option object to configure TensorRT backend. More... | |
Enumerations | |
enum | LitePowerMode { LITE_POWER_HIGH = 0, LITE_POWER_LOW = 1, LITE_POWER_FULL = 2, LITE_POWER_NO_BIND = 3, LITE_POWER_RAND_HIGH = 4, LITE_POWER_RAND_LOW = 5 } |
enum | Backend { UNKNOWN , TRT, PDINFER, POROS, OPENVINO, LITE, RKNPU2, SOPHGOTPU } |
enum | ModelFormat { AUTOREC, PADDLE, ONNX, RKNN, TORCHSCRIPT, SOPHGO } |
Functions | |
FASTDEPLOY_DECL int | CheckStreamEncrypted (std::istream &cipher_stream) |
check stream is encrypted or not More... | |
FASTDEPLOY_DECL int | DecryptStream (std::istream &cipher_stream, std::ostream &plain_stream, const std::string &key_base64) |
decrypt an encrypted stream More... | |
FASTDEPLOY_DECL std::string | Decrypt (const std::string &cipher, const std::string &key) |
decrypt an encrypted string More... | |
FASTDEPLOY_DECL std::string | GenerateRandomKey () |
generate a random key(base64-32bytes) for an encrypted model More... | |
FASTDEPLOY_DECL int | EncryptStream (const std::string &keydata, std::istream &in_stream, std::ostream &out_stream) |
encrypt a std::istream with key More... | |
FASTDEPLOY_DECL std::vector< std::string > | Encrypt (const std::string &input, const std::string &key=GenerateRandomKey()) |
encrypt a string with key More... | |
void | PaddleTensorToFDTensor (std::unique_ptr< paddle_infer::Tensor > &tensor, FDTensor *fd_tensor, bool copy_to_fd) |
else share memory to FDTensor | |
std::vector< Backend > | GetAvailableBackends () |
Get all the available inference backend in FastDeploy. | |
bool | IsBackendAvailable (const Backend &backend) |
Check if the inference backend available. | |
void | SetLogger (bool enable_info=true, bool enable_warning=true) |
Set behaviour of logging while using FastDeploy. | |
All C++ FastDeploy APIs are defined inside this namespace.
enum fastdeploy::Backend |
Inference backend supported in FastDeploy
Paddle Lite power mode for mobile device.
int fastdeploy::CheckStreamEncrypted | ( | std::istream & | cipher_stream | ) |
check stream is encrypted or not
[in] | cipher_stream | The encrypted stream |
0 - encrypted 1 - unencrypt
std::string fastdeploy::Decrypt | ( | const std::string & | cipher, |
const std::string & | key | ||
) |
decrypt an encrypted string
[in] | cipher | The encrypted string |
[in] | key | The key for decryption |
int fastdeploy::DecryptStream | ( | std::istream & | cipher_stream, |
std::ostream & | plain_stream, | ||
const std::string & | key_base64 | ||
) |
decrypt an encrypted stream
[in] | cipher_stream | The encrypted stream |
[in] | plain_stream | The decrypted stream |
[in] | key_base64 | The key for decryption |
std::vector< std::string > fastdeploy::Encrypt | ( | const std::string & | input, |
const std::string & | key = GenerateRandomKey() |
||
) |
encrypt a string with key
[in] | input | The input string for encryption |
[in] | key | If not given by user, generate key automatically. |
FASTDEPLOY_DECL int fastdeploy::EncryptStream | ( | const std::string & | keydata, |
std::istream & | in_stream, | ||
std::ostream & | out_stream | ||
) |
encrypt a std::istream with key
[in] | keydata | The key(base64-32bytes) for encryption |
[in] | in_stream | The plain stream |
[in] | out_stream | The ecrypted stream |
std::string fastdeploy::GenerateRandomKey | ( | ) |
generate a random key(base64-32bytes) for an encrypted model