Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
03bb1866
提交
03bb1866
authored
12月 06, 2013
作者:
abergeron
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1642 from nouiz/gpua_elemwise
Gpua elemwise
上级
2688f9f8
e5ea2e27
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
4 行删除
+7
-4
cmodule.py
theano/gof/cmodule.py
+1
-1
elemwise.py
theano/sandbox/gpuarray/elemwise.py
+0
-0
test_elemwise.py
theano/sandbox/gpuarray/tests/test_elemwise.py
+6
-3
没有找到文件。
theano/gof/cmodule.py
浏览文件 @
03bb1866
...
@@ -362,7 +362,7 @@ def get_module_hash(src_code, key):
...
@@ -362,7 +362,7 @@ def get_module_hash(src_code, key):
# it changes, then the module hash should be different.
# it changes, then the module hash should be different.
# We start with the source code itself (stripping blanks might avoid
# We start with the source code itself (stripping blanks might avoid
# recompiling after a basic indentation fix for instance).
# recompiling after a basic indentation fix for instance).
to_hash
=
map
(
str
.
strip
,
src_code
.
split
(
'
\n
'
))
to_hash
=
[
l
.
strip
()
for
l
in
src_code
.
split
(
'
\n
'
)]
# Get the version part of the key (ignore if unversioned).
# Get the version part of the key (ignore if unversioned).
if
key
[
0
]:
if
key
[
0
]:
to_hash
+=
map
(
str
,
key
[
0
])
to_hash
+=
map
(
str
,
key
[
0
])
...
...
theano/sandbox/gpuarray/elemwise.py
浏览文件 @
03bb1866
差异被折叠。
点击展开。
theano/sandbox/gpuarray/tests/test_elemwise.py
浏览文件 @
03bb1866
...
@@ -15,11 +15,14 @@ from theano.sandbox.gpuarray.type import GpuArrayType
...
@@ -15,11 +15,14 @@ from theano.sandbox.gpuarray.type import GpuArrayType
from
pygpu.array
import
gpuarray
from
pygpu.array
import
gpuarray
# This is acutally a test for GpuElemwise
# This is acutally a test for GpuElemwise
class
test_gpu_Broadcast
(
test_Broadcast
):
class
test_gpu_Broadcast
(
test_Broadcast
):
op
=
GpuElemwise
op
=
GpuElemwise
type
=
GpuArrayType
type
=
GpuArrayType
cop
=
GpuElemwise
ctype
=
GpuArrayType
def
rand_val
(
self
,
shp
):
def
rand_val
(
self
,
shp
):
return
rand_gpuarray
(
*
shp
,
**
dict
(
cls
=
gpuarray
))
return
rand_gpuarray
(
*
shp
,
**
dict
(
cls
=
gpuarray
))
...
@@ -27,8 +30,8 @@ class test_gpu_Broadcast(test_Broadcast):
...
@@ -27,8 +30,8 @@ class test_gpu_Broadcast(test_Broadcast):
#cop = GpuElemwise
#cop = GpuElemwise
#ctype = GpuArrayType
#ctype = GpuArrayType
#
def rand_cval(self, shp):
def
rand_cval
(
self
,
shp
):
#
return rand_gpuarray(*shp, **dict(cls=gpuarray))
return
rand_gpuarray
(
*
shp
,
**
dict
(
cls
=
gpuarray
))
class
test_GpuDimShuffle
(
test_DimShuffle
):
class
test_GpuDimShuffle
(
test_DimShuffle
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论