mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +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:
@@ -49,7 +49,7 @@ bool FastDeployModel::IsSupported(const std::vector<Backend>& backends,
|
||||
<< "the backend [" << backend
|
||||
<< "] is supported for current model!" << std::endl;
|
||||
return true;
|
||||
} else if (!enable_valid_backend_check_) {
|
||||
} else if (!runtime_option.enable_valid_backend_check) {
|
||||
FDWARNING << "Checking for valid backend is disable, we don't"
|
||||
<< " check to see if the backend [" << backend
|
||||
<< "] is supported for current model!" << std::endl;
|
||||
@@ -57,7 +57,7 @@ bool FastDeployModel::IsSupported(const std::vector<Backend>& backends,
|
||||
}
|
||||
return CheckBackendSupported(backends, backend);
|
||||
#else
|
||||
if (!enable_valid_backend_check_) {
|
||||
if (!runtime_option.enable_valid_backend_check) {
|
||||
FDWARNING << "Checking for valid backend is disable, we don't"
|
||||
<< " check to see if the backend [" << backend
|
||||
<< "] is supported for current model!" << std::endl;
|
||||
|
Reference in New Issue
Block a user