提交 334547a9 authored 作者: Frederic's avatar Frederic

Fix for windows with python 63 bits, where python int are 32 bits.

上级 2011fb6f
......@@ -2535,7 +2535,12 @@ CudaNdarray_synchronize(PyObject* _unused, PyObject* dummy)
PyObject *
GetTheanoAllocInfo(PyObject* _unused, PyObject* dummy)
{
PyObject* tuple = Py_BuildValue("(ii)", _allocated_size, _max_allocated_size);
PyObject* a = PyLong_FromLong(_allocated_size);
PyObject* b = PyLong_FromLong(_max_allocated_size);
PyObject* tuple = PyTuple_New(2);
PyTuple_SetItem(tuple, 0, a);
PyTuple_SetItem(tuple, 1, b);
return tuple;
}
#endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论