mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
[Bug Fix] fixed paddle inference headers include policy (#1827)
* Update __init__.py * [Python] Update python whl setup.py * [cmake] support fd & paddle inference custom libs on win/linux * [cmake] support fd & paddle inference custom libs on win/linux * [Bug Fix] fixed paddle inference headers include policy * [Bug Fix] fixed paddle inference headers include policy * [Bug Fix] fixed paddle inference headers include policy
This commit is contained in:
@@ -45,6 +45,10 @@ if os.name != "nt" and os.path.exists(trt_directory):
|
||||
# Note(zhoushunjie): Fix the import order of paddle and fastdeploy library.
|
||||
# This solution will be removed it when the confilct of paddle and
|
||||
# fastdeploy is fixed.
|
||||
try:
|
||||
import paddle
|
||||
except:
|
||||
pass
|
||||
|
||||
from .c_lib_wrap import (
|
||||
ModelFormat,
|
||||
|
Reference in New Issue
Block a user