Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
c5ce82e7
提交
c5ce82e7
authored
2月 29, 2016
作者:
Olivier Mastropietro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed import * errors. Removed if 0 test. Removed compile/tests/* from the whitelist
上级
9805ceaa
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
25 行删除
+11
-25
test_pfunc.py
theano/compile/tests/test_pfunc.py
+3
-2
test_shared.py
theano/compile/tests/test_shared.py
+8
-14
test_flake8.py
theano/tests/test_flake8.py
+0
-9
没有找到文件。
theano/compile/tests/test_pfunc.py
浏览文件 @
c5ce82e7
...
@@ -8,8 +8,9 @@ from theano.tensor import dmatrix, iscalar, lscalar, dmatrices
...
@@ -8,8 +8,9 @@ from theano.tensor import dmatrix, iscalar, lscalar, dmatrices
from
theano
import
tensor
from
theano
import
tensor
from
theano.compile
import
In
from
theano.compile
import
In
from
theano.compile.sharedvalue
import
*
from
theano.compile
import
pfunc
from
theano.compile.pfunc
import
*
from
theano.compile
import
shared
from
theano.compile
import
config
def
data_of
(
s
):
def
data_of
(
s
):
...
...
theano/compile/tests/test_shared.py
浏览文件 @
c5ce82e7
...
@@ -3,27 +3,21 @@ import unittest
...
@@ -3,27 +3,21 @@ import unittest
import
theano
import
theano
from
theano.tensor
import
Tensor
,
TensorType
from
theano.tensor
import
Tensor
,
TensorType
from
theano.compile.sharedvalue
import
*
from
theano.compile.sharedvalue
import
shared
from
theano.compile.sharedvalue
import
SharedVariable
from
theano.compile.sharedvalue
import
generic
class
Test_SharedVariable
(
unittest
.
TestCase
):
class
Test_SharedVariable
(
unittest
.
TestCase
):
def
test_ctors
(
self
):
def
test_ctors
(
self
):
if
0
:
if
theano
.
configdefaults
.
python_int_bitwidth
()
==
32
:
# when using an implementation that handles scalars with
assert
shared
(
7
)
.
type
==
theano
.
tensor
.
iscalar
,
shared
(
7
)
.
type
# Scalar type
assert
shared
(
7
)
.
type
==
Scalar
(
'int64'
)
assert
shared
(
7.0
)
.
type
==
Scalar
(
'float64'
)
assert
shared
(
7
,
dtype
=
'float64'
)
.
type
==
Scalar
(
'float64'
)
else
:
else
:
if
theano
.
configdefaults
.
python_int_bitwidth
()
==
32
:
assert
shared
(
7
)
.
type
==
theano
.
tensor
.
lscalar
,
shared
(
7
)
.
type
assert
shared
(
7
)
.
type
==
theano
.
tensor
.
iscalar
,
shared
(
7
)
.
type
assert
shared
(
7.0
)
.
type
==
theano
.
tensor
.
dscalar
else
:
assert
shared
(
numpy
.
float32
(
7
))
.
type
==
theano
.
tensor
.
fscalar
assert
shared
(
7
)
.
type
==
theano
.
tensor
.
lscalar
,
shared
(
7
)
.
type
assert
shared
(
7.0
)
.
type
==
theano
.
tensor
.
dscalar
assert
shared
(
numpy
.
float32
(
7
))
.
type
==
theano
.
tensor
.
fscalar
# test tensor constructor
# test tensor constructor
b
=
shared
(
numpy
.
zeros
((
5
,
5
),
dtype
=
'int32'
))
b
=
shared
(
numpy
.
zeros
((
5
,
5
),
dtype
=
'int32'
))
...
...
theano/tests/test_flake8.py
浏览文件 @
c5ce82e7
...
@@ -42,15 +42,6 @@ whitelist_flake8 = [
...
@@ -42,15 +42,6 @@ whitelist_flake8 = [
"tests/unittest_tools.py"
,
"tests/unittest_tools.py"
,
"compile/__init__.py"
,
"compile/__init__.py"
,
"compile/profiling.py"
,
"compile/profiling.py"
,
"compile/tests/test_builders.py"
,
"compile/tests/test_misc.py"
,
"compile/tests/test_monitormode.py"
,
"compile/tests/test_function_module.py"
,
"compile/tests/test_shared.py"
,
"compile/tests/test_ops.py"
,
"compile/tests/test_pfunc.py"
,
"compile/tests/test_debugmode.py"
,
"compile/tests/test_profiling.py"
,
"typed_list/__init__.py"
,
"typed_list/__init__.py"
,
"tensor/__init__.py"
,
"tensor/__init__.py"
,
"tensor/tests/test_subtensor.py"
,
"tensor/tests/test_subtensor.py"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论