提交 61cd828f 编写于 作者: Y Yu Yang

Follow comments

上级 385bd464
...@@ -5,8 +5,8 @@ __lib__ = None ...@@ -5,8 +5,8 @@ __lib__ = None
def get_c_lib(): def get_c_lib():
if __lib__ is None:
global __lib__ global __lib__
if __lib__ is None:
path = os.path.join(os.path.dirname(__file__), "libpaddle_master.so") path = os.path.join(os.path.dirname(__file__), "libpaddle_master.so")
__lib__ = ctypes.cdll.LoadLibrary(path) __lib__ = ctypes.cdll.LoadLibrary(path)
return __lib__ return __lib__
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册