提交 11ae30f6 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Comments for some functions of CudaNdarray

上级 9c18b4c5
......@@ -2188,7 +2188,7 @@ CudaNdarray_Dot(PyObject* _unused, PyObject* args)
}
static PyObject *
filter(PyObject* __unsed_self, PyObject *args) // args = (data, broadcastable, strict)
filter(PyObject* __unsed_self, PyObject *args) // args = (data, broadcastable, strict, storage)
{
/*
* TODO: DOC what this function should do in the various cases of
......@@ -2490,6 +2490,11 @@ CudaNdarray_new_nd(int nd)
return (PyObject *) rval;
}
/**
* Initialize 'self' as a view of 'base', with memory storage 'data'
*/
int CudaNdarray_set_device_data(CudaNdarray * self, float * data, PyObject * base)
{
if (self->data_allocated)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论