提交 26ff5a53 编写于 作者: W Wu Yi 提交者: chengduo

Add note when import core.so error (#11918)

* add note when import core.so error

* update
上级 94e7a61c
...@@ -19,7 +19,16 @@ import re ...@@ -19,7 +19,16 @@ import re
import numpy as np import numpy as np
import proto.framework_pb2 as framework_pb2 import proto.framework_pb2 as framework_pb2
from . import core try:
from . import core
except ImportError, e:
raise ImportError(
"""NOTE: You may need to run \"export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH\"
if you encounters \"libmkldnn.so not found\" errors. If you have python
installed in other directory, replace \"/usr/local/lib\" with your own
directory. The original error is: """ % str(e))
except Exception, e:
raise e
import unique_name import unique_name
__all__ = [ __all__ = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册