Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
c89e4cca
提交
c89e4cca
authored
12月 01, 2016
作者:
notoraptor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Corrections, flake8 corrections and re-testing.
上级
6d5c18b0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
+4
-2
elemwise.py
theano/gpuarray/elemwise.py
+2
-1
test_elemwise.py
theano/gpuarray/tests/test_elemwise.py
+2
-1
没有找到文件。
theano/gpuarray/elemwise.py
浏览文件 @
c89e4cca
...
...
@@ -2603,7 +2603,7 @@ class GpuErfinv(Erfinv):
return
"
%(z)
s = (
%(x)
s <= -1) ? erfinv(-1.0): ((
%(x)
s >= 1) ? erfinv(1.0): erfinv(
%(x)
s));"
%
locals
()
class
GpuErfcinv
(
Erfinv
):
class
GpuErfcinv
(
Erf
c
inv
):
"""
Inverse complementary error function for GPU.
...
...
@@ -2626,6 +2626,7 @@ class GpuErfcinv(Erfinv):
gpu_erfinv
=
GpuErfinv
(
upgrade_to_float_no_complex
,
name
=
'gpu_erfinv'
)
gpu_erfcinv
=
GpuErfcinv
(
upgrade_to_float_no_complex
,
name
=
'gpu_erfcinv'
)
# Caching GpuCAReduceCuda
def
gpu_ca_reduce_cuda
(
scalar_op
,
axis
=
None
,
reduce_mask
=
None
,
dtype
=
None
,
acc_dtype
=
None
,
pre_scalar_op
=
None
):
...
...
theano/gpuarray/tests/test_elemwise.py
浏览文件 @
c89e4cca
...
...
@@ -63,7 +63,7 @@ class TestMathErrorFunctions(TestCase):
def
setUp
(
self
):
# NB: erfinv is defined in ]-1;1[, and erfcinv is defined in ]0;2[,
# so we just take some values in an interval that covers both domains
#
(this will also allow to test some values outside the domains).
# (this will also allow to test some values outside the domains).
# We take [-5;5[ by default and we concatenate it 1000 times
# to have the GPU ops run on large data.
default_array
=
[
x
/
10.0
for
x
in
range
(
-
50
,
50
)]
*
1000
...
...
@@ -132,6 +132,7 @@ class TestMathErrorFunctions(TestCase):
self
.
compute_erfcinv_host
(
dtype
)
self
.
compute_erfcinv_gpu
(
dtype
)
class
test_float16
():
def
test_composite_elemwise_float16
(
self
):
w
=
theano
.
tensor
.
bvector
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论