提交 aaa62838 authored 作者: Frederic Bastien's avatar Frederic Bastien

Added comment and removed useless line.

上级 895dd59c
...@@ -3031,6 +3031,12 @@ CudaNdarray_dimshuffle(CudaNdarray * self, unsigned int len, const int * pattern ...@@ -3031,6 +3031,12 @@ CudaNdarray_dimshuffle(CudaNdarray * self, unsigned int len, const int * pattern
/**
*
* This is the function that bind to python.
* See CudaNdarray_dimshuffle to call from C.
* We use -1 to mean 'x' as in Tensor Dimshuffle.
*/
PyObject * PyObject *
CudaNdarray_Dimshuffle(PyObject* _unused, PyObject* args) CudaNdarray_Dimshuffle(PyObject* _unused, PyObject* args)
{ {
...@@ -3129,7 +3135,6 @@ CudaNdarray_Dimshuffle(PyObject* _unused, PyObject* args) ...@@ -3129,7 +3135,6 @@ CudaNdarray_Dimshuffle(PyObject* _unused, PyObject* args)
if (pattern != NULL) if (pattern != NULL)
free(pattern); free(pattern);
if (rval != NULL)
Py_XDECREF(rval); Py_XDECREF(rval);
return NULL; return NULL;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论