Commit 046d752b by Tianqi Chen

Fix attr (#62)

parent eea05d77
...@@ -139,7 +139,7 @@ class Symbol(SymbolBase): ...@@ -139,7 +139,7 @@ class Symbol(SymbolBase):
ret = _ctypes.c_char_p() ret = _ctypes.c_char_p()
success = _ctypes.c_int() success = _ctypes.c_int()
_check_call(_LIB.NNSymbolGetAttr( _check_call(_LIB.NNSymbolGetAttr(
self.handle, c_str(key), _ctypes.byref(ret), _ctypes.byref(success))) self.handle, _base.c_str(key), _ctypes.byref(ret), _ctypes.byref(success)))
if success.value != 0: if success.value != 0:
return _base.py_str(ret.value) return _base.py_str(ret.value)
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment