Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
8e8b9f99
提交
8e8b9f99
authored
3月 31, 2012
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Typo fixes
上级
d4dfbf2a
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
NEWS.txt
NEWS.txt
+2
-2
basic_ops.py
theano/sandbox/cuda/basic_ops.py
+4
-4
cuda_ndarray.cu
theano/sandbox/cuda/cuda_ndarray.cu
+1
-1
没有找到文件。
NEWS.txt
浏览文件 @
8e8b9f99
...
...
@@ -65,8 +65,8 @@ New Features
(Frederic B., Simon McGregor)
* MRG random now raises an error with a clear message when the passed shape
contains dimensions with bad value like 0. (Frédéric B. reported by Ian G.)
* "CudaNdarray[*] = ndarray" work
in more case
(Frederic B.)
* "CudaNdarray[*] += ndarray" work
in more case
(Frederic B.)
* "CudaNdarray[*] = ndarray" work
s in more cases
(Frederic B.)
* "CudaNdarray[*] += ndarray" work
s in more cases
(Frederic B.)
* We add dimensions to CudaNdarray to automatically broadcast more frequently.
(Frederic B.)
* theano.tensor.argsort that wrap numpy.argsort (Hani Almousli).
...
...
theano/sandbox/cuda/basic_ops.py
浏览文件 @
8e8b9f99
...
...
@@ -1939,10 +1939,10 @@ class GpuAdvancedIncSubtensor1(tensor.AdvancedIncSubtensor1, GpuOp):
return
Apply
(
self
,
[
x_
,
y_
,
ilist_
],
[
x_
.
type
()])
# CudaNdarray_Subscript() don't support Advanced slicing.
# But we can't use the parent version that loop
on each indices
# CudaNdarray_Subscript() do
es
n't support Advanced slicing.
# But we can't use the parent version that loop
s on each index
# as we also need to loop when set_instead_of_inc is True and the
# parent don't loop in that case.
# parent do
es
n't loop in that case.
def
perform
(
self
,
node
,
inp
,
out_
):
# TODO opt to make this inplace
x
,
y
,
idx
=
inp
...
...
@@ -1950,7 +1950,7 @@ class GpuAdvancedIncSubtensor1(tensor.AdvancedIncSubtensor1, GpuOp):
if
not
self
.
inplace
:
x
=
x
.
copy
()
if
self
.
set_instead_of_inc
:
# CudaNdarray __setitem__ don't do broadcast nor support
# CudaNdarray __setitem__ do
es
n't do broadcast nor support
# list of index.
assert
y
.
ndim
<=
x
.
ndim
# Should be guaranteed by `make_node`
if
y
.
ndim
==
x
.
ndim
:
...
...
theano/sandbox/cuda/cuda_ndarray.cu
浏览文件 @
8e8b9f99
...
...
@@ -1066,7 +1066,7 @@ CudaNdarray_inplace_elemwise(PyObject* py_self, PyObject * py_other, operator_t
PyErr_SetString
(
PyExc_ValueError
,
"CudaNdarray_inplace_elemwise cannot work inplace on"
" un-initialized array when the new value have more th
e
n"
" un-initialized array when the new value have more th
a
n"
" 0 or 1 broadcastable dimensions"
);
Py_XDECREF
(
new_other
);
return
0
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论