Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
4fbf5546
提交
4fbf5546
authored
3月 04, 2016
作者:
sentient07
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Made code compliant with pep8 and added flake8-future-import to travis.yml
上级
24648eee
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
49 行增加
和
17 行删除
+49
-17
.travis.yml
.travis.yml
+1
-0
test_compiledir.py
theano/gof/tests/test_compiledir.py
+1
-0
test_abstractconv.py
theano/sandbox/cuda/tests/test_abstractconv.py
+0
-3
test_abstractconv.py
theano/sandbox/gpuarray/tests/test_abstractconv.py
+0
-3
test_multinomial_wo_replacement.py
theano/sandbox/tests/test_multinomial_wo_replacement.py
+1
-0
basic.py
theano/scalar/basic.py
+1
-1
test_div_future.py
theano/scalar/tests/test_div_future.py
+1
-1
test_div_no_future.py
theano/scalar/tests/test_div_no_future.py
+1
-0
test_utils.py
theano/sparse/tests/test_utils.py
+5
-5
bn.py
theano/tensor/nnet/bn.py
+1
-1
test_blocksparse.py
theano/tensor/nnet/tests/test_blocksparse.py
+0
-1
test_flake8.py
theano/tests/test_flake8.py
+37
-2
没有找到文件。
.travis.yml
浏览文件 @
4fbf5546
...
@@ -37,6 +37,7 @@ install:
...
@@ -37,6 +37,7 @@ install:
-
source activate pyenv
-
source activate pyenv
-
if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install pydot; fi
-
if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install pydot; fi
-
pip install . --no-deps
-
pip install . --no-deps
-
pip install flake8-future-import
# command to run tests
# command to run tests
env
:
env
:
...
...
theano/gof/tests/test_compiledir.py
浏览文件 @
4fbf5546
from
__future__
import
absolute_import
,
print_function
,
division
from
__future__
import
absolute_import
,
print_function
,
division
from
theano.configdefaults
import
short_platform
from
theano.configdefaults
import
short_platform
def
test_short_platform
():
def
test_short_platform
():
for
r
,
p
,
a
in
[
# (release, platform, answer)
for
r
,
p
,
a
in
[
# (release, platform, answer)
(
'3.2.0-70-generic'
,
(
'3.2.0-70-generic'
,
...
...
theano/sandbox/cuda/tests/test_abstractconv.py
浏览文件 @
4fbf5546
from
__future__
import
absolute_import
,
print_function
,
division
from
__future__
import
absolute_import
,
print_function
,
division
import
unittest
import
numpy
import
itertools
import
theano
import
theano
from
theano.tensor.nnet.tests
import
test_abstract_conv
from
theano.tensor.nnet.tests
import
test_abstract_conv
...
...
theano/sandbox/gpuarray/tests/test_abstractconv.py
浏览文件 @
4fbf5546
from
__future__
import
absolute_import
,
print_function
,
division
from
__future__
import
absolute_import
,
print_function
,
division
import
unittest
import
numpy
import
itertools
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
...
...
theano/sandbox/tests/test_multinomial_wo_replacement.py
浏览文件 @
4fbf5546
from
__future__
import
absolute_import
,
print_function
,
division
import
numpy
import
numpy
from
theano
import
config
,
function
,
tensor
from
theano
import
config
,
function
,
tensor
from
theano.sandbox
import
multinomial
from
theano.sandbox
import
multinomial
...
...
theano/scalar/basic.py
浏览文件 @
4fbf5546
...
@@ -9,7 +9,7 @@ what you are doing!
...
@@ -9,7 +9,7 @@ what you are doing!
If you want to use a scalar variable in a Theano graph,
If you want to use a scalar variable in a Theano graph,
you probably want to use theano.tensor.[c,z,f,d,b,w,i,l,]scalar!
you probably want to use theano.tensor.[c,z,f,d,b,w,i,l,]scalar!
"""
"""
from
__future__
import
absolute_import
,
print_function
from
__future__
import
absolute_import
,
print_function
,
division
from
itertools
import
chain
from
itertools
import
chain
import
math
import
math
...
...
theano/scalar/tests/test_div_future.py
浏览文件 @
4fbf5546
from
__future__
import
division
from
__future__
import
absolute_import
,
print_function
,
division
import
theano
import
theano
import
theano.tensor
as
T
import
theano.tensor
as
T
...
...
theano/scalar/tests/test_div_no_future.py
浏览文件 @
4fbf5546
from
__future__
import
absolute_import
,
print_function
,
division
import
theano
import
theano
import
theano.tensor
as
T
import
theano.tensor
as
T
import
unittest
import
unittest
...
...
theano/sparse/tests/test_utils.py
浏览文件 @
4fbf5546
from
__future__
import
absolute_import
,
print_function
,
division
from
__future__
import
absolute_import
,
print_function
,
division
from
nose.plugins.skip
import
SkipTest
from
theano.sparse.utils
import
hash_from_sparse
import
numpy
from
theano.sparse.tests.test_basic
import
as_sparse_format
import
theano.sparse
import
theano.sparse
if
not
theano
.
sparse
.
enable_sparse
:
if
not
theano
.
sparse
.
enable_sparse
:
raise
SkipTest
(
'Optional package sparse disabled'
)
raise
SkipTest
(
'Optional package sparse disabled'
)
from
theano.sparse.utils
import
hash_from_sparse
from
nose.plugins.skip
import
SkipTest
from
theano.sparse.tests.test_basic
import
as_sparse_format
import
numpy
def
test_hash_from_sparse
():
def
test_hash_from_sparse
():
...
...
theano/tensor/nnet/bn.py
浏览文件 @
4fbf5546
from
__future__
import
absolute_import
,
print_function
from
__future__
import
absolute_import
,
print_function
,
division
import
theano
import
theano
from
theano.scalar
import
Composite
from
theano.scalar
import
Composite
from
theano.scalar
import
add
,
sub
,
true_div
,
mul
from
theano.scalar
import
add
,
sub
,
true_div
,
mul
...
...
theano/tensor/nnet/tests/test_blocksparse.py
浏览文件 @
4fbf5546
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
Tests for block sparse dot
Tests for block sparse dot
"""
"""
from
__future__
import
absolute_import
,
print_function
,
division
from
__future__
import
absolute_import
,
print_function
,
division
import
unittest
import
numpy
import
numpy
from
numpy.random
import
randn
from
numpy.random
import
randn
...
...
theano/tests/test_flake8.py
浏览文件 @
4fbf5546
...
@@ -22,7 +22,7 @@ __contact__ = "Saizheng Zhang <saizhenglisa..at..gmail.com>"
...
@@ -22,7 +22,7 @@ __contact__ = "Saizheng Zhang <saizhenglisa..at..gmail.com>"
# too complex to do with the C code
# too complex to do with the C code
# - "closing bracket does not match indentation of opening bracket's line"
# - "closing bracket does not match indentation of opening bracket's line"
# ignored by default by pep8
# ignored by default by pep8
ignore
=
(
'E501'
,
'E123'
,
'E133'
)
ignore
=
(
'E501'
,
'E123'
,
'E133'
,
'FI12'
,
'FI14'
,
'FI15'
,
'FI50'
,
'FI51'
,
'FI53'
)
whitelist_flake8
=
[
whitelist_flake8
=
[
"compat/six.py"
,
# This is bundled code that will be deleted, don't fix it
"compat/six.py"
,
# This is bundled code that will be deleted, don't fix it
...
@@ -30,8 +30,21 @@ whitelist_flake8 = [
...
@@ -30,8 +30,21 @@ whitelist_flake8 = [
"tests/__init__.py"
,
"tests/__init__.py"
,
"compile/__init__.py"
,
"compile/__init__.py"
,
"compile/profiling.py"
,
"compile/profiling.py"
,
"compile/sandbox/__init__.py"
,
"compile/tests/__init__.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"
,
"typed_list/tests/__init__.py"
,
"tensor/__init__.py"
,
"tensor/__init__.py"
,
"tensor/tests/__init__.py"
,
"tensor/tests/test_subtensor.py"
,
"tensor/tests/test_subtensor.py"
,
"tensor/tests/test_utils.py"
,
"tensor/tests/test_utils.py"
,
"tensor/tests/test_nlinalg.py"
,
"tensor/tests/test_nlinalg.py"
,
...
@@ -62,6 +75,7 @@ whitelist_flake8 = [
...
@@ -62,6 +75,7 @@ whitelist_flake8 = [
"tensor/signal/tests/test_conv.py"
,
"tensor/signal/tests/test_conv.py"
,
"tensor/signal/tests/test_downsample.py"
,
"tensor/signal/tests/test_downsample.py"
,
"tensor/nnet/__init__.py"
,
"tensor/nnet/__init__.py"
,
"tensor/nnet/tests/__init__.py"
,
"tensor/nnet/tests/test_conv.py"
,
"tensor/nnet/tests/test_conv.py"
,
"tensor/nnet/tests/test_neighbours.py"
,
"tensor/nnet/tests/test_neighbours.py"
,
"tensor/nnet/tests/test_nnet.py"
,
"tensor/nnet/tests/test_nnet.py"
,
...
@@ -69,8 +83,12 @@ whitelist_flake8 = [
...
@@ -69,8 +83,12 @@ whitelist_flake8 = [
"tensor/nnet/tests/test_conv3d.py"
,
"tensor/nnet/tests/test_conv3d.py"
,
"tensor/nnet/tests/speed_test_conv.py"
,
"tensor/nnet/tests/speed_test_conv.py"
,
"tensor/nnet/tests/test_sigm.py"
,
"tensor/nnet/tests/test_sigm.py"
,
"tensor/signal/__init__.py"
,
"tensor/signal/tests/__init__.py"
,
"scalar/__init__.py"
,
"scalar/__init__.py"
,
"scalar/tests/__init__.py"
,
"scalar/tests/test_basic.py"
,
"scalar/tests/test_basic.py"
,
"sandbox/__init__.py"
,
"sandbox/tests/test_theano_object.py"
,
"sandbox/tests/test_theano_object.py"
,
"sandbox/tests/test_scan.py"
,
"sandbox/tests/test_scan.py"
,
"sandbox/tests/test_neighbourhoods.py"
,
"sandbox/tests/test_neighbourhoods.py"
,
...
@@ -91,6 +109,7 @@ whitelist_flake8 = [
...
@@ -91,6 +109,7 @@ whitelist_flake8 = [
"sandbox/cuda/GpuConvTransp3D.py"
,
"sandbox/cuda/GpuConvTransp3D.py"
,
"sandbox/cuda/nvcc_compiler.py"
,
"sandbox/cuda/nvcc_compiler.py"
,
"sandbox/cuda/neighbours.py"
,
"sandbox/cuda/neighbours.py"
,
"sandbox/cuda/tests/__init__.py"
,
"sandbox/cuda/tests/walltime.py"
,
"sandbox/cuda/tests/walltime.py"
,
"sandbox/cuda/tests/test_gradient.py"
,
"sandbox/cuda/tests/test_gradient.py"
,
"sandbox/cuda/tests/test_neighbours.py"
,
"sandbox/cuda/tests/test_neighbours.py"
,
...
@@ -110,6 +129,7 @@ whitelist_flake8 = [
...
@@ -110,6 +129,7 @@ whitelist_flake8 = [
"sandbox/cuda/tests/test_extra_ops.py"
,
"sandbox/cuda/tests/test_extra_ops.py"
,
"sandbox/cuda/tests/test_gemmcorr3d.py"
,
"sandbox/cuda/tests/test_gemmcorr3d.py"
,
"sandbox/cuda/tests/test_viewop.py"
,
"sandbox/cuda/tests/test_viewop.py"
,
"sandbox/gpuarray/tests/__init__.py"
,
"sandbox/scan_module/scan_utils.py"
,
"sandbox/scan_module/scan_utils.py"
,
"sandbox/scan_module/scan.py"
,
"sandbox/scan_module/scan.py"
,
"sandbox/scan_module/scan_op.py"
,
"sandbox/scan_module/scan_op.py"
,
...
@@ -118,6 +138,7 @@ whitelist_flake8 = [
...
@@ -118,6 +138,7 @@ whitelist_flake8 = [
"sandbox/scan_module/tests/test_scan.py"
,
"sandbox/scan_module/tests/test_scan.py"
,
"sandbox/linalg/ops.py"
,
"sandbox/linalg/ops.py"
,
"sandbox/linalg/__init__.py"
,
"sandbox/linalg/__init__.py"
,
"sandbox/linalg/tests/__init__.py"
,
"sandbox/linalg/tests/test_linalg.py"
,
"sandbox/linalg/tests/test_linalg.py"
,
"sandbox/gpuarray/__init__.py"
,
"sandbox/gpuarray/__init__.py"
,
"scan_module/scan_utils.py"
,
"scan_module/scan_utils.py"
,
...
@@ -126,15 +147,26 @@ whitelist_flake8 = [
...
@@ -126,15 +147,26 @@ whitelist_flake8 = [
"scan_module/scan_op.py"
,
"scan_module/scan_op.py"
,
"scan_module/scan_perform_ext.py"
,
"scan_module/scan_perform_ext.py"
,
"scan_module/__init__.py"
,
"scan_module/__init__.py"
,
"scan_module/tests/__init__.py"
,
"scan_module/tests/test_scan.py"
,
"scan_module/tests/test_scan.py"
,
"scan_module/tests/test_scan_opt.py"
,
"scan_module/tests/test_scan_opt.py"
,
"misc/__init__.py"
,
"misc/tests/__init__.py"
,
"misc/tests/test_may_share_memory.py"
,
"misc/tests/test_pycuda_theano_simple.py"
,
"misc/tests/test_gnumpy_utils.py"
,
"misc/tests/test_pycuda_utils.py"
,
"misc/tests/test_cudamat_utils.py"
,
"misc/tests/test_pycuda_example.py"
,
"misc/hooks/reindent.py"
,
"misc/hooks/reindent.py"
,
"misc/hooks/check_whitespace.py"
,
"misc/hooks/check_whitespace.py"
,
"sparse/__init__.py"
,
"sparse/__init__.py"
,
"sparse/tests/__init__.py"
,
"sparse/tests/test_utils.py"
,
"sparse/tests/test_utils.py"
,
"sparse/tests/test_opt.py"
,
"sparse/tests/test_opt.py"
,
"sparse/tests/test_basic.py"
,
"sparse/tests/test_basic.py"
,
"sparse/tests/test_sp2.py"
,
"sparse/tests/test_sp2.py"
,
"sparse/sandbox/__init__.py"
,
"sparse/sandbox/test_sp.py"
,
"sparse/sandbox/test_sp.py"
,
"sparse/sandbox/sp2.py"
,
"sparse/sandbox/sp2.py"
,
"sparse/sandbox/truedot.py"
,
"sparse/sandbox/truedot.py"
,
...
@@ -142,7 +174,10 @@ whitelist_flake8 = [
...
@@ -142,7 +174,10 @@ whitelist_flake8 = [
"gof/unify.py"
,
"gof/unify.py"
,
"gof/__init__.py"
,
"gof/__init__.py"
,
"gof/sandbox/equilibrium.py"
,
"gof/sandbox/equilibrium.py"
,
"d3viz/__init__.py"
"d3viz/__init__.py"
,
"d3viz/tests/__init__.py"
,
"gof/tests/__init__.py"
,
]
]
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论