Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
b3205b23
提交
b3205b23
authored
7月 21, 2012
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #776 from nouiz/fix_new_commit
Fix new commit
上级
8576a61d
397a1857
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
3 行删除
+10
-3
install.txt
doc/install.txt
+1
-1
compilelock.py
theano/gof/compilelock.py
+2
-0
cuda_ndarray.cu
theano/sandbox/cuda/cuda_ndarray.cu
+7
-2
没有找到文件。
doc/install.txt
浏览文件 @
b3205b23
...
...
@@ -228,7 +228,7 @@ get the code using `Git <http://git-scm.com>`__:
git clone git://github.com/Theano/Theano.git
From here, the easiest way to get started is (this requ
est
setuptools_ or distribute_ to be installed):
From here, the easiest way to get started is (this requ
ires
setuptools_ or distribute_ to be installed):
.. code-block:: bash
...
...
theano/gof/compilelock.py
浏览文件 @
b3205b23
...
...
@@ -42,6 +42,8 @@ def get_lock(lock_dir=None, **kw):
:param kw: Additional arguments to be forwarded to the `lock` function when
acquiring the lock.
:note: We can lock only on 1 directory at a time.
"""
if
lock_dir
is
None
:
lock_dir
=
os
.
path
.
join
(
config
.
compiledir
,
'lock_dir'
)
...
...
theano/sandbox/cuda/cuda_ndarray.cu
浏览文件 @
b3205b23
...
...
@@ -879,12 +879,14 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
if
(
!
clipmode
){
Py_DECREF
(
indices_obj
);
Py_DECREF
(
out
);
free
(
dims
);
return
NULL
;
}
if
(
strcmp
(
clipmode
,
"raise"
)
!=
0
)
{
PyErr_SetString
(
PyExc_NotImplementedError
,
"CudaNdarray_TakeFrom: only the raise mode is currently supported"
);
Py_DECREF
(
indices_obj
);
Py_DECREF
(
out
);
free
(
dims
);
return
NULL
;
}
Py_DECREF
(
clipmode_obj
);
...
...
@@ -903,6 +905,7 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
if
(
!
err_var
)
{
// PyErr set by device_malloc
Py_DECREF
(
indices_obj
);
Py_DECREF
(
out
);
free
(
dims
);
return
NULL
;
}
cudaError_t
err
=
cudaMemset
((
void
*
)
err_var
,
0
,
sizeof
(
int
));
...
...
@@ -912,10 +915,11 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
cudaGetErrorString
(
err
));
Py_DECREF
(
indices_obj
);
Py_DECREF
(
out
);
free
(
dims
);
return
NULL
;
}
}
free
(
dims
);
dim3
n_blocks
(
std
::
min
(
CudaNdarray_HOST_DIMS
(
out
)[
0
],
65535
),
1
,
1
);
switch
(
self
->
nd
)
{
case
1
:
...
...
@@ -997,7 +1001,8 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
"CudaNdarray_TakeFrom: only input with 1, 2 or 3"
" dimensions are currently supported"
);
}
}
free
(
dims
);
CNDA_THREAD_SYNC
;
cudaError_t
err
=
cudaGetLastError
();
if
(
cudaSuccess
!=
err
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论