diff --git a/python/fastdeploy/__init__.py b/python/fastdeploy/__init__.py index ac982fcfb..5b16c3a04 100755 --- a/python/fastdeploy/__init__.py +++ b/python/fastdeploy/__init__.py @@ -16,6 +16,14 @@ import logging import os import sys +# 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, Backend,