[Other] Fix order of paddle and fastdeploy (#1451)

* Fix order of paddle and fastdeploy

* update comment
This commit is contained in:
Jack Zhou
2023-02-28 09:58:19 +08:00
committed by GitHub
parent e86905ca0d
commit 0e67d95d57

View File

@@ -16,6 +16,14 @@ import logging
import os import os
import sys 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 ( from .c_lib_wrap import (
ModelFormat, ModelFormat,
Backend, Backend,