Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
13b58d7d
提交
13b58d7d
authored
1月 12, 2011
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
'move a file not used frequently under gof as it can be used by more type then tensor.'
上级
d0a3178b
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
10 行增加
和
8 行删除
+10
-8
apply_shape.py
theano/gof/apply_shape.py
+3
-2
basic.py
theano/tensor/basic.py
+1
-1
blas.py
theano/tensor/blas.py
+1
-1
conv.py
theano/tensor/nnet/conv.py
+4
-2
nnet.py
theano/tensor/nnet/nnet.py
+1
-2
没有找到文件。
theano/
tensor/tsor_apply
.py
→
theano/
gof/apply_shape
.py
浏览文件 @
13b58d7d
"""Apply for use with Tensors that implements shape propagation via variable.tag.shape
"""Apply for use with Tensors that implements shape propagation via variable.tag.shape
This is not used currently very used. It appear in some case, but I'm not sure it if work or if it is used by default.
It could help the current system to make it detect problem earlier when contructing the graph instead of during optimization.
"""
"""
import
sys
import
sys
from
theano
import
gof
from
theano
import
gof
...
@@ -37,5 +40,3 @@ class Apply(gof.Apply):
...
@@ -37,5 +40,3 @@ class Apply(gof.Apply):
for
o
,
oshp
in
zip
(
outputs
,
oshapes
):
for
o
,
oshp
in
zip
(
outputs
,
oshapes
):
o
.
tag
.
shape
=
oshp
o
.
tag
.
shape
=
oshp
theano/tensor/basic.py
浏览文件 @
13b58d7d
...
@@ -13,7 +13,7 @@ import numpy, theano
...
@@ -13,7 +13,7 @@ import numpy, theano
from
theano
import
gof
,
shared
from
theano
import
gof
,
shared
from
theano.gof
import
Variable
,
Op
,
Type
,
Constant
,
Value
from
theano.gof
import
Variable
,
Op
,
Type
,
Constant
,
Value
from
theano.
tensor.tsor_apply
import
Apply
from
theano.
gof.apply_shape
import
Apply
from
theano
import
gradient
from
theano
import
gradient
...
...
theano/tensor/blas.py
浏览文件 @
13b58d7d
...
@@ -14,7 +14,7 @@ import theano.scalar
...
@@ -14,7 +14,7 @@ import theano.scalar
import
basic
as
T
import
basic
as
T
from
theano.
tensor.tsor_apply
import
Apply
from
theano.
gof.apply_shape
import
Apply
#NB: this clobbers the builtin 'compile' symbol
#NB: this clobbers the builtin 'compile' symbol
from
theano
import
compile
#to register the optimizer built by this file
from
theano
import
compile
#to register the optimizer built by this file
...
...
theano/tensor/nnet/conv.py
浏览文件 @
13b58d7d
...
@@ -10,12 +10,14 @@ See especially conv2d().
...
@@ -10,12 +10,14 @@ See especially conv2d().
__docformat__
=
"restructuredtext en"
__docformat__
=
"restructuredtext en"
import
sys
,
logging
import
logging
import
numpy
import
numpy
import
theano
import
theano
import
theano.tensor
as
tensor
import
theano.tensor
as
tensor
from
theano
import
gof
,
Op
,
tensor
,
config
from
theano
import
gof
,
Op
,
tensor
,
config
from
theano.
tensor.tsor_apply
import
Apply
from
theano.
gof.apply_shape
import
Apply
from
theano.gof.python25
import
any
from
theano.gof.python25
import
any
imported_scipy_signal
=
False
imported_scipy_signal
=
False
...
...
theano/tensor/nnet/nnet.py
浏览文件 @
13b58d7d
...
@@ -7,12 +7,11 @@ import numpy
...
@@ -7,12 +7,11 @@ import numpy
import
theano
import
theano
from
theano
import
gof
from
theano
import
gof
from
theano
import
printing
from
theano.tensor
import
basic
as
tensor
from
theano.tensor
import
basic
as
tensor
from
theano.tensor
import
elemwise
,
dmatrix
,
fmatrix
,
dvector
,
fvector
from
theano.tensor
import
elemwise
,
dmatrix
,
fmatrix
,
dvector
,
fvector
from
theano.tensor
import
opt
from
theano.tensor
import
opt
from
theano.compile
import
optdb
from
theano.compile
import
optdb
from
theano.
tensor.tsor_apply
import
Apply
from
theano.
gof.apply_shape
import
Apply
from
theano.tensor.nnet.sigm
import
sigmoid
,
softplus
from
theano.tensor.nnet.sigm
import
sigmoid
,
softplus
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论