Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
a4cc527c
提交
a4cc527c
authored
11月 14, 2016
作者:
Mohammad Pezeshki
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
not testing uint for arctan2
上级
bd761396
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
10 行删除
+6
-10
test_basic.py
theano/tensor/tests/test_basic.py
+6
-10
没有找到文件。
theano/tensor/tests/test_basic.py
浏览文件 @
a4cc527c
...
@@ -1312,8 +1312,8 @@ ExpTester = makeBroadcastTester(
...
@@ -1312,8 +1312,8 @@ ExpTester = makeBroadcastTester(
expected
=
upcast_float16_ufunc
(
numpy
.
exp
),
expected
=
upcast_float16_ufunc
(
numpy
.
exp
),
good
=
dict
(
_good_broadcast_unary_normal
,
good
=
dict
(
_good_broadcast_unary_normal
,
int8
=
[
numpy
.
arange
(
-
127
,
89
,
dtype
=
'int8'
)],
int8
=
[
numpy
.
arange
(
-
127
,
89
,
dtype
=
'int8'
)],
uint8
=
[
numpy
.
arange
(
0
,
255
,
dtype
=
'uint8'
)],
uint8
=
[
numpy
.
arange
(
0
,
89
,
dtype
=
'uint8'
)],
uint16
=
[
numpy
.
arange
(
0
,
65535
,
dtype
=
'uint16'
)]),
uint16
=
[
numpy
.
arange
(
0
,
89
,
dtype
=
'uint16'
)]),
grad
=
_grad_broadcast_unary_normal
)
grad
=
_grad_broadcast_unary_normal
)
ExpInplaceTester
=
makeBroadcastTester
(
ExpInplaceTester
=
makeBroadcastTester
(
op
=
inplace
.
exp_inplace
,
op
=
inplace
.
exp_inplace
,
...
@@ -1339,8 +1339,8 @@ Expm1Tester = makeBroadcastTester(
...
@@ -1339,8 +1339,8 @@ Expm1Tester = makeBroadcastTester(
expected
=
upcast_float16_ufunc
(
numpy
.
expm1
),
expected
=
upcast_float16_ufunc
(
numpy
.
expm1
),
good
=
dict
(
_good_broadcast_unary_normal
,
good
=
dict
(
_good_broadcast_unary_normal
,
int8
=
[
numpy
.
arange
(
-
127
,
89
,
dtype
=
'int8'
)],
int8
=
[
numpy
.
arange
(
-
127
,
89
,
dtype
=
'int8'
)],
uint8
=
[
numpy
.
arange
(
0
,
255
,
dtype
=
'uint8'
)],
uint8
=
[
numpy
.
arange
(
0
,
89
,
dtype
=
'uint8'
)],
uint16
=
[
numpy
.
arange
(
0
,
65535
,
dtype
=
'uint16'
)]),
uint16
=
[
numpy
.
arange
(
0
,
89
,
dtype
=
'uint16'
)]),
grad
=
_grad_broadcast_unary_normal
)
grad
=
_grad_broadcast_unary_normal
)
Expm1InplaceTester
=
makeBroadcastTester
(
Expm1InplaceTester
=
makeBroadcastTester
(
op
=
inplace
.
expm1_inplace
,
op
=
inplace
.
expm1_inplace
,
...
@@ -1429,7 +1429,7 @@ _good_broadcast_unary_wide = dict(
...
@@ -1429,7 +1429,7 @@ _good_broadcast_unary_wide = dict(
empty
=
(
numpy
.
asarray
([],
dtype
=
config
.
floatX
),),)
empty
=
(
numpy
.
asarray
([],
dtype
=
config
.
floatX
),),)
_good_broadcast_unary_wide_float
=
copymod
(
_good_broadcast_unary_wide_float
=
copymod
(
_good_broadcast_unary_wide
,
_good_broadcast_unary_wide
,
without
=
[
'integers'
,
'int8'
,
'int8'
,
'uint16'
])
without
=
[
'integers'
,
'int8'
,
'
u
int8'
,
'uint16'
])
_grad_broadcast_unary_wide
=
dict
(
normal
=
(
rand_ranged
(
-
1000
,
1000
,
(
2
,
3
)),),)
_grad_broadcast_unary_wide
=
dict
(
normal
=
(
rand_ranged
(
-
1000
,
1000
,
(
2
,
3
)),),)
if
theano
.
config
.
floatX
==
'float32'
:
if
theano
.
config
.
floatX
==
'float32'
:
...
@@ -1577,10 +1577,6 @@ _good_broadcast_binary_arctan2 = dict(
...
@@ -1577,10 +1577,6 @@ _good_broadcast_binary_arctan2 = dict(
integers
=
(
randint
(
2
,
3
),
randint
(
2
,
3
)),
integers
=
(
randint
(
2
,
3
),
randint
(
2
,
3
)),
int8
=
[
numpy
.
arange
(
-
127
,
128
,
dtype
=
'int8'
),
int8
=
[
numpy
.
arange
(
-
127
,
128
,
dtype
=
'int8'
),
numpy
.
arange
(
-
127
,
128
,
dtype
=
'int8'
)[:,
numpy
.
newaxis
]],
numpy
.
arange
(
-
127
,
128
,
dtype
=
'int8'
)[:,
numpy
.
newaxis
]],
uint8
=
[
numpy
.
arange
(
0
,
255
,
dtype
=
'uint8'
),
numpy
.
arange
(
0
,
255
,
dtype
=
'uint8'
)[:,
numpy
.
newaxis
]],
uint16
=
[
numpy
.
arange
(
0
,
65535
,
dtype
=
'uint16'
),
numpy
.
arange
(
0
,
65535
,
dtype
=
'uint16'
)[:,
numpy
.
newaxis
]],
dtype_mixup_1
=
(
rand
(
2
,
3
),
randint
(
2
,
3
)),
dtype_mixup_1
=
(
rand
(
2
,
3
),
randint
(
2
,
3
)),
dtype_mixup_2
=
(
randint
(
2
,
3
),
rand
(
2
,
3
)),
dtype_mixup_2
=
(
randint
(
2
,
3
),
rand
(
2
,
3
)),
empty
=
(
numpy
.
asarray
([],
dtype
=
config
.
floatX
),
empty
=
(
numpy
.
asarray
([],
dtype
=
config
.
floatX
),
...
@@ -1602,7 +1598,7 @@ Arctan2Tester = makeBroadcastTester(
...
@@ -1602,7 +1598,7 @@ Arctan2Tester = makeBroadcastTester(
Arctan2InplaceTester
=
makeBroadcastTester
(
Arctan2InplaceTester
=
makeBroadcastTester
(
op
=
inplace
.
arctan2_inplace
,
op
=
inplace
.
arctan2_inplace
,
expected
=
numpy
.
arctan2
,
expected
=
numpy
.
arctan2
,
good
=
copymod
(
_good_broadcast_binary_arctan2
,
without
=
[
'integers'
,
'int8'
,
'uint8'
,
'uint16'
]),
good
=
copymod
(
_good_broadcast_binary_arctan2
,
without
=
[
'integers'
,
'int8'
]),
grad
=
_grad_broadcast_binary_arctan2
,
grad
=
_grad_broadcast_binary_arctan2
,
inplace
=
True
)
inplace
=
True
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论