Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
27ba127c
提交
27ba127c
authored
3月 16, 2015
作者:
Frédéric Bastien
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2631 from abergeron/minor_fixes
Minor fixes
上级
c23a8365
ab5c724d
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
10 行删除
+5
-10
config.txt
doc/library/config.txt
+1
-1
printing.py
theano/printing.py
+2
-7
opt.py
theano/sandbox/cuda/opt.py
+2
-2
没有找到文件。
doc/library/config.txt
浏览文件 @
27ba127c
...
...
@@ -524,7 +524,7 @@ import theano and print the config variable, as in:
slower otherwise.
This can be any compiler binary (full path or not) but things may
break if the interface i
f
not g++-compatible to some degree.
break if the interface i
s
not g++-compatible to some degree.
.. attribute:: config.nvcc.fastmath
...
...
theano/printing.py
浏览文件 @
27ba127c
...
...
@@ -217,6 +217,8 @@ class Print(Op):
"""
view_map
=
{
0
:
[
0
]}
__props__
=
(
'message'
,
'attrs'
,
'global_fn'
)
def
__init__
(
self
,
message
=
""
,
attrs
=
(
"__str__"
,),
global_fn
=
_print_fn
):
self
.
message
=
message
self
.
attrs
=
tuple
(
attrs
)
# attrs should be a hashable iterable
...
...
@@ -238,13 +240,6 @@ class Print(Op):
def
R_op
(
self
,
inputs
,
eval_points
):
return
[
x
for
x
in
eval_points
]
def
__eq__
(
self
,
other
):
return
(
type
(
self
)
==
type
(
other
)
and
self
.
message
==
other
.
message
and
self
.
attrs
==
other
.
attrs
)
def
__hash__
(
self
):
return
hash
(
self
.
message
)
^
hash
(
self
.
attrs
)
def
__setstate__
(
self
,
dct
):
dct
.
setdefault
(
'global_fn'
,
_print_fn
)
self
.
__dict__
.
update
(
dct
)
...
...
theano/sandbox/cuda/opt.py
浏览文件 @
27ba127c
...
...
@@ -129,13 +129,13 @@ class InputToGpuOptimizer(Optimizer):
def
apply
(
self
,
fgraph
):
for
input
in
fgraph
.
inputs
:
if
isinstance
(
input
.
type
,
CudaNdarrayType
):
return
continue
# This happen frequently as we do 2 pass of the gpu optimizations
if
(
len
(
input
.
clients
)
==
1
and
(
input
.
clients
[
0
][
0
]
==
'output'
or
input
.
clients
[
0
][
0
]
.
op
==
gpu_from_host
)):
return
continue
try
:
new_input
=
host_from_gpu
(
gpu_from_host
(
input
))
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论