提交 970ea842 authored 作者: Frederic Bastien's avatar Frederic Bastien

implement CudaNdarray.copy to have the same api as ndarray.

上级 f9898c93
...@@ -578,6 +578,9 @@ static PyMethodDef CudaNdarray_methods[] = ...@@ -578,6 +578,9 @@ static PyMethodDef CudaNdarray_methods[] =
{"__deepcopy__", {"__deepcopy__",
(PyCFunction)CudaNdarray_DeepCopy, METH_O, (PyCFunction)CudaNdarray_DeepCopy, METH_O,
"Create a copy of this object"}, "Create a copy of this object"},
{"copy",
(PyCFunction)CudaNdarray_Copy, METH_NOARGS,
"Create a copy of this object"},
{"reduce_sum", {"reduce_sum",
(PyCFunction)CudaNdarray_ReduceSum, METH_O, (PyCFunction)CudaNdarray_ReduceSum, METH_O,
"Reduce over the given dimensions by summation"}, "Reduce over the given dimensions by summation"},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论