mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-16 05:30:58 +08:00
[Bug Fix] move enable_valid_backend_check option -> runtime_option (#1450)
* [Model] Add skip valid backend check option -> FastDeployModel * [Model] Add skip valid backend check option -> FastDeployModel * [Model] Add skip valid backend check option -> FastDeployModel * [FastDeploy] move enable_valid_backend_check option -> runtime_option
This commit is contained in:
@@ -178,9 +178,21 @@ struct FASTDEPLOY_DECL RuntimeOption {
|
||||
benchmark_option.enable_profile = false;
|
||||
}
|
||||
|
||||
/** \brief Enable to check if current backend set by user can be found at valid_xxx_backend.
|
||||
*/
|
||||
void EnableValidBackendCheck() {
|
||||
enable_valid_backend_check = true;
|
||||
}
|
||||
/** \brief Disable to check if current backend set by user can be found at valid_xxx_backend.
|
||||
*/
|
||||
void DisableValidBackendCheck() {
|
||||
enable_valid_backend_check = false;
|
||||
}
|
||||
|
||||
/// Benchmark option
|
||||
benchmark::BenchmarkOption benchmark_option;
|
||||
// enable the check for valid backend, default true.
|
||||
bool enable_valid_backend_check = true;
|
||||
|
||||
// If model_from_memory is true, the model_file and params_file is
|
||||
// binary stream in memory;
|
||||
|
Reference in New Issue
Block a user