mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
Polish cmake files and runtime apis (#36)
* Add custom operator for onnxruntime ans fix paddle backend * Polish cmake files and runtime apis * Remove copy libraries * fix some issue * fix bug * fix bug
This commit is contained in:
@@ -81,10 +81,10 @@ void OrtBackend::BuildOption(const OrtBackendOption& option) {
|
||||
}
|
||||
}
|
||||
if (!support_cuda) {
|
||||
FDLogger() << "[WARN] Compiled fastdeploy with onnxruntime doesn't "
|
||||
"support GPU, the available providers are "
|
||||
<< providers_msg << "will fallback to CPUExecutionProvider."
|
||||
<< std::endl;
|
||||
FDWARNING << "Compiled fastdeploy with onnxruntime doesn't "
|
||||
"support GPU, the available providers are "
|
||||
<< providers_msg << "will fallback to CPUExecutionProvider."
|
||||
<< std::endl;
|
||||
option_.use_gpu = false;
|
||||
} else {
|
||||
FDASSERT(option.gpu_id == 0, "Requires gpu_id == 0, but now gpu_id = " +
|
||||
|
Reference in New Issue
Block a user