From 0e67d95d57eb572ff9c57181b60c31ce4172bdd1 Mon Sep 17 00:00:00 2001 From: Jack Zhou Date: Tue, 28 Feb 2023 09:58:19 +0800 Subject: [PATCH] [Other] Fix order of paddle and fastdeploy (#1451) * Fix order of paddle and fastdeploy * update comment --- python/fastdeploy/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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,