提交 fc8d85e1 authored 作者: Frederic's avatar Frederic

update comment.

上级 fb583490
...@@ -2424,8 +2424,8 @@ CudaNdarray_set_strides(CudaNdarray *self, PyObject *value, void *closure) ...@@ -2424,8 +2424,8 @@ CudaNdarray_set_strides(CudaNdarray *self, PyObject *value, void *closure)
} }
} }
/* /*
// Don't do the check as ExtractDiag need that and NumPy seam to don't do // Do not do this check, as ExtractDiag needs that, and NumPy does not seem
// it. // to do it.
npy_intp dims[PyTuple_Size(value)]; npy_intp dims[PyTuple_Size(value)];
for(int i=0; i < CudaNdarray_NDIM(self); i++){ for(int i=0; i < CudaNdarray_NDIM(self); i++){
dims[i] = CudaNdarray_HOST_DIMS(self)[i]; dims[i] = CudaNdarray_HOST_DIMS(self)[i];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论