diff --git a/python/nnvm/symbol.py b/python/nnvm/symbol.py index 79c4b7ec4626..a39d9803ab01 100644 --- a/python/nnvm/symbol.py +++ b/python/nnvm/symbol.py @@ -139,7 +139,7 @@ def attr(self, key): ret = _ctypes.c_char_p() success = _ctypes.c_int() _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: return _base.py_str(ret.value) else: