Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
67f31fb4
提交
67f31fb4
authored
10月 19, 2016
作者:
Pascal Lamblin
提交者:
GitHub
10月 19, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5086 from nouiz/mixed
A few small update.
上级
418a5f1b
88bc7683
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
26 行增加
和
12 行删除
+26
-12
index.txt
doc/library/index.txt
+1
-0
tests.txt
doc/library/tests.txt
+8
-0
debug_faq.txt
doc/tutorial/debug_faq.txt
+5
-1
using_gpu.txt
doc/tutorial/using_gpu.txt
+3
-0
ops.py
theano/compile/ops.py
+1
-1
opt.py
theano/sandbox/cuda/opt.py
+1
-1
subtensor.py
theano/tensor/subtensor.py
+7
-3
test_flake8.py
theano/tests/test_flake8.py
+0
-6
没有找到文件。
doc/library/index.txt
浏览文件 @
67f31fb4
...
@@ -27,6 +27,7 @@ Types and Ops that you can use to build and compile expression graphs.
...
@@ -27,6 +27,7 @@ Types and Ops that you can use to build and compile expression graphs.
sparse/sandbox
sparse/sandbox
tensor/index
tensor/index
typed_list
typed_list
tests
There are also some top-level imports that you might find more convenient:
There are also some top-level imports that you might find more convenient:
...
...
doc/library/tests.txt
0 → 100644
浏览文件 @
67f31fb4
.. _libdoc_tests:
=====================
:mod:`tests` -- Tests
=====================
.. automodule:: theano.tests.breakpoint
:members:
doc/tutorial/debug_faq.txt
浏览文件 @
67f31fb4
...
@@ -573,4 +573,8 @@ the Ops from Theano and Pylearn2.
...
@@ -573,4 +573,8 @@ the Ops from Theano and Pylearn2.
Then send us filename.
Then send us filename.
.. autoclass:: theano.tests.breakpoint.PdbBreakpoint
Breakpoint during Theano function execution
-------------------------------------------
You can set breakpoing during the execution of a Theano function with
:class:`PdbBreakpoint <theano.tests.breakpoint.PdbBreakpoint>`.
doc/tutorial/using_gpu.txt
浏览文件 @
67f31fb4
...
@@ -369,6 +369,9 @@ Consider again the logistic regression:
...
@@ -369,6 +369,9 @@ Consider again the logistic regression:
print("prediction on D")
print("prediction on D")
print(predict(D[0]))
print(predict(D[0]))
print("floatX=", theano.config.floatX)
print("device=", theano.config.device)
.. testoutput::
.. testoutput::
:hide:
:hide:
:options: + ELLIPSIS
:options: + ELLIPSIS
...
...
theano/compile/ops.py
浏览文件 @
67f31fb4
...
@@ -450,7 +450,7 @@ def shape_i(var, i, fgraph=None):
...
@@ -450,7 +450,7 @@ def shape_i(var, i, fgraph=None):
if
inp
.
owner
:
if
inp
.
owner
:
recur
(
inp
.
owner
)
recur
(
inp
.
owner
)
# If the output var isn't marked as being in the graph,
# If the output var isn't marked as being in the graph,
# we need to a
tt
it in the ShapeFeature.
# we need to a
dd
it in the ShapeFeature.
shape_feature
.
on_import
(
fgraph
,
node
,
shape_feature
.
on_import
(
fgraph
,
node
,
'gof.ops.shape_i'
)
'gof.ops.shape_i'
)
if
var
not
in
shape_of
:
if
var
not
in
shape_of
:
...
...
theano/sandbox/cuda/opt.py
浏览文件 @
67f31fb4
...
@@ -2199,7 +2199,7 @@ else:
...
@@ -2199,7 +2199,7 @@ else:
"fast_run"
))
"fast_run"
))
optdb
.
register
(
'gpu_elemwise_fusion'
,
optdb
.
register
(
'gpu_elemwise_fusion'
,
tensor
.
opt
.
FusionOptimizer
(
gpu_local_elemwise_fusion
),
tensor
.
opt
.
FusionOptimizer
(
gpu_local_elemwise_fusion
),
71.00
,
'fusion'
,
'local_elemwise_fusion'
)
49
,
'fusion'
,
'local_elemwise_fusion'
)
# GpuElemwise inplace
# GpuElemwise inplace
gpu_inplace_elemwise_optimizer
=
tensor
.
opt
.
InplaceElemwiseOptimizer
(
gpu_inplace_elemwise_optimizer
=
tensor
.
opt
.
InplaceElemwiseOptimizer
(
...
...
theano/tensor/subtensor.py
浏览文件 @
67f31fb4
...
@@ -573,11 +573,15 @@ class Subtensor(Op):
...
@@ -573,11 +573,15 @@ class Subtensor(Op):
gz
,
=
grads
gz
,
=
grads
x
=
inputs
[
0
]
x
=
inputs
[
0
]
rest
=
inputs
[
1
:]
rest
=
inputs
[
1
:]
output
=
self
(
*
inputs
)
if
x
.
dtype
.
find
(
'int'
)
!=
-
1
:
if
output
.
dtype
.
find
(
'int'
)
!=
-
1
:
first
=
x
.
zeros_like
()
.
astype
(
theano
.
config
.
floatX
)
first
=
x
.
zeros_like
()
.
astype
(
theano
.
config
.
floatX
)
else
:
else
:
first
=
IncSubtensor
(
self
.
idx_list
)(
x
.
zeros_like
(),
gz
,
*
rest
)
# For best optimization, we let this as an inc.
# This allow the opt local_IncSubtensor_serialize to apply first.
# We need to implement an optimization that will convert this to a
# set subtensor.
first
=
IncSubtensor
(
self
.
idx_list
)(
x
.
zeros_like
(),
gz
,
*
rest
)
return
([
first
]
+
[
DisconnectedType
()()]
*
len
(
rest
))
return
([
first
]
+
[
DisconnectedType
()()]
*
len
(
rest
))
def
connection_pattern
(
self
,
node
):
def
connection_pattern
(
self
,
node
):
...
...
theano/tests/test_flake8.py
浏览文件 @
67f31fb4
...
@@ -85,12 +85,6 @@ whitelist_flake8 = [
...
@@ -85,12 +85,6 @@ whitelist_flake8 = [
"sandbox/cuda/__init__.py"
,
"sandbox/cuda/__init__.py"
,
"sandbox/cuda/tests/__init__.py"
,
"sandbox/cuda/tests/__init__.py"
,
"sandbox/gpuarray/__init__.py"
,
"sandbox/gpuarray/__init__.py"
,
"sandbox/scan_module/scan_utils.py"
,
"sandbox/scan_module/scan.py"
,
"sandbox/scan_module/scan_op.py"
,
"sandbox/scan_module/__init__.py"
,
"sandbox/scan_module/tests/test_utils.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/__init__.py"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论