Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
16503fe9
提交
16503fe9
authored
10月 23, 2014
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Doc which fct set the error message.
上级
3a74c6ae
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
13 行增加
和
0 行删除
+13
-0
cuda_ndarray.cuh
theano/sandbox/cuda/cuda_ndarray.cuh
+13
-0
没有找到文件。
theano/sandbox/cuda/cuda_ndarray.cuh
浏览文件 @
16503fe9
...
...
@@ -91,6 +91,8 @@ extern DllExport cublasHandle_t handle;
*
* device_malloc will set the Python error message before returning None.
* device_free will return nonzero on failure (after setting the python error message)
*
* Set the Python error
*/
DllExport
void
*
device_malloc
(
size_t
size
);
DllExport
void
*
device_malloc
(
size_t
size
,
int
verbose
);
...
...
@@ -148,6 +150,8 @@ enum operator_t
/*
* Return a CudaNdarray whose 'nd' dimensions are all 0.
* if nd==-1, it is not initialized.
*
* Set the Python error
*/
DllExport
PyObject
*
CudaNdarray_New
(
int
nd
=-
1
);
...
...
@@ -286,6 +290,8 @@ static PyObject *CudaNdarray_SIZE_Object(const CudaNdarray *self, void *closure)
* Allocate a new CudaNdarray with room for given number of dimensions
*
* No Storage space is allocated (and all dimensions are 0)
*
* Set the Python error
*/
DllExport
PyObject
*
CudaNdarray_new_nd
(
const
int
nd
);
...
...
@@ -294,6 +300,8 @@ DllExport PyObject * CudaNdarray_new_nd(const int nd);
*
* Note: This does not allocate storage for data, or free
* pre-existing storage.
*
* Set the Python error
*/
DllExport
inline
int
ALWAYS_INLINE
CudaNdarray_set_nd
(
CudaNdarray
*
self
,
const
int
nd
)
...
...
@@ -505,6 +513,8 @@ DllExport int CudaNdarray_CopyFromArray(CudaNdarray * self, PyArrayObject*obj);
* e.g. suppose self and other are 2D matrices and other
* has only one row. Then we need to copy this row several
* times when copying to self.
*
* Set the Python error
*/
DllExport
int
CudaNdarray_CopyFromCudaNdarray
(
CudaNdarray
*
self
,
const
CudaNdarray
*
other
,
bool
unbroadcast
=
false
);
...
...
@@ -575,6 +585,7 @@ DllExport int CudaNdarray_dimshuffle(CudaNdarray * self, unsigned int len, const
DllExport
PyObject
*
CudaNdarray_TakeFrom
(
CudaNdarray
*
self
,
PyObject
*
args
);
// Set the Python error
int
fprint_CudaNdarray
(
FILE
*
fd
,
const
CudaNdarray
*
self
);
...
...
@@ -589,6 +600,8 @@ DllExport int CudaNdarray_inplace_elemwise(PyObject* py_self, PyObject * py_othe
// or a pointer to an ndarray of the right size. In the last case it will
// not change.
// If fortran is non-zero, a fortran order is expected/created
//
// Set the Python error
DllExport
int
CudaNdarray_prep_output
(
CudaNdarray
**
arr
,
int
nd
,
const
int
*
dims
,
int
fortran
=
0
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论