Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e09272f5
提交
e09272f5
authored
3月 09, 2016
作者:
abergeron
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4161 from nouiz/opt_failure
[OPT FAILURE] Fix gh-4131
上级
30d9450a
0fc532a4
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
18 行增加
和
17 行删除
+18
-17
.travis.yml
.travis.yml
+1
-1
configparser.py
theano/configparser.py
+5
-4
fg.py
theano/gof/fg.py
+0
-5
__init__.py
theano/sandbox/cuda/__init__.py
+0
-1
opt.py
theano/sandbox/cuda/opt.py
+4
-4
opt.py
theano/sandbox/gpuarray/opt.py
+6
-1
downsample.py
theano/tensor/signal/downsample.py
+2
-1
没有找到文件。
.travis.yml
浏览文件 @
e09272f5
...
...
@@ -65,7 +65,7 @@ script:
-
cd $(python -c 'import theano; import os; print(os.path.split(theano.__file__)[0])')
-
echo "$PART"
-
cd -; cd Theano
-
python -c 'import theano; print(theano.config)'
-
python -c 'import theano; print(theano.config
.__str__(print_doc=False)
)'
-
python -c 'import theano; assert(theano.config.blas.ldflags != "")'
-
theano-nose -v $PART
-
if [[ $DOC == "1" ]]; then python doc/scripts/docgen.py --nopdf --check; fi
...
...
theano/configparser.py
浏览文件 @
e09272f5
...
...
@@ -165,10 +165,11 @@ def fetch_val_for_key(key, delete_key=False):
_config_var_list
=
[]
def
_config_print
(
thing
,
buf
):
def
_config_print
(
thing
,
buf
,
print_doc
=
True
):
for
cv
in
_config_var_list
:
print
(
cv
,
file
=
buf
)
print
(
" Doc: "
,
cv
.
doc
,
file
=
buf
)
if
print_doc
:
print
(
" Doc: "
,
cv
.
doc
,
file
=
buf
)
print
(
" Value: "
,
cv
.
__get__
(
True
,
None
),
file
=
buf
)
print
(
""
,
file
=
buf
)
...
...
@@ -191,9 +192,9 @@ class TheanoConfigParser(object):
# properties are installed by AddConfigVar
_i_am_a_config_class
=
True
def
__str__
(
self
):
def
__str__
(
self
,
print_doc
=
True
):
sio
=
StringIO
()
_config_print
(
self
.
__class__
,
sio
)
_config_print
(
self
.
__class__
,
sio
,
print_doc
=
print_doc
)
return
sio
.
getvalue
()
# N.B. all instances of TheanoConfigParser give access to the same properties.
...
...
theano/gof/fg.py
浏览文件 @
e09272f5
...
...
@@ -219,16 +219,11 @@ class FunctionGraph(utils.object2):
def
disown
(
self
):
"""
WRITEME
Cleans up all of this FunctionGraph's nodes and variables so they are
not associated with this FunctionGraph anymore.
The FunctionGraph should not be used anymore after disown is called.
This may not clean everything this FunctionGraph's features set in the
nodes and variables. If there are no features, this should set
them back to what they were originally.
"""
for
f
in
self
.
_features
:
self
.
remove_feature
(
f
)
...
...
theano/sandbox/cuda/__init__.py
浏览文件 @
e09272f5
...
...
@@ -165,7 +165,6 @@ if compile_cuda_ndarray and cuda_available:
os
.
makedirs
(
tmpdir
)
compiler
=
nvcc_compiler
.
NVCC_compiler
()
preargs
=
[
'-O3'
]
+
compiler
.
compile_args
()
preargs
+=
[
f
for
f
in
config
.
nvcc
.
flags
.
split
(
' '
)
if
f
]
compiler
.
compile_str
(
'cuda_ndarray'
,
code
,
...
...
theano/sandbox/cuda/opt.py
浏览文件 @
e09272f5
...
...
@@ -548,7 +548,7 @@ def local_gpu_lazy_ifelse(node):
for
i
in
range
(
len
(
outs
)):
if
(
not
isinstance
(
outs
[
i
]
.
type
,
CudaNdarrayType
)
and
outs
[
i
]
.
dtype
==
'float32'
):
getattr
(
outs
[
i
],
'dtype'
,
None
)
==
'float32'
):
outs
[
i
]
=
as_cuda_ndarray_variable
(
outs
[
i
])
outs
=
gpu_ifelse
(
c
,
*
outs
,
return_list
=
True
)
for
i
in
range
(
len
(
outs
)):
...
...
@@ -1023,11 +1023,11 @@ def local_gpu_flatten(node):
return
[
gpu_flatten
(
host_input
.
owner
.
inputs
[
0
],
outdim
)(
as_cuda_ndarray_variable
(
host_input
.
owner
.
inputs
[
0
]))]
if
isinstance
(
node
.
op
,
tensor
.
Flatten
):
x
,
shp
=
node
.
inputs
outdim
=
node
.
op
.
outdim
x
,
=
node
.
inputs
if
x
.
owner
and
isinstance
(
x
.
owner
.
op
,
HostFromGpu
):
outdim
=
node
.
op
.
outdim
gpu_x
,
=
x
.
owner
.
inputs
return
[
host_from_gpu
(
gpu_flatten
(
host_input
.
owner
.
inputs
[
0
],
outdim
)(
gpu_x
))]
return
[
host_from_gpu
(
gpu_flatten
(
gpu_x
,
outdim
))]
return
False
...
...
theano/sandbox/gpuarray/opt.py
浏览文件 @
e09272f5
...
...
@@ -546,7 +546,12 @@ def local_gpua_lazy_ifelse(node, context_name):
if
node
.
op
.
gpu
:
return
c
=
node
.
inputs
[
0
]
inps
=
[
as_gpuarray_variable
(
v
,
context_name
)
for
v
in
node
.
inputs
[
1
:]]
inps
=
[]
for
v
in
node
.
inputs
[
1
:]:
if
isinstance
(
v
.
type
,
(
tensor
.
TensorType
,
GpuArrayType
)):
inps
.
append
(
as_gpuarray_variable
(
v
,
context_name
))
else
:
inps
.
append
(
v
)
return
IfElse
(
node
.
op
.
n_outs
,
gpu
=
True
)(
c
,
*
inps
,
return_list
=
True
)
...
...
theano/tensor/signal/downsample.py
浏览文件 @
e09272f5
...
...
@@ -2,7 +2,8 @@ from __future__ import print_function
from
.
import
pool
import
warnings
warnings
.
warn
(
"downsample module has been moved to the pool module."
)
warnings
.
warn
(
"downsample module has been moved to the theano.tensor.signal.pool module."
)
max_pool_2d_same_size
=
pool
.
max_pool_2d_same_size
max_pool_2d
=
pool
.
pool_2d
DownsampleFactorMax
=
pool
.
Pool
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论