Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ebcb4441
提交
ebcb4441
authored
7月 02, 2015
作者:
Iban Harlouchet
提交者:
Frederic
7月 23, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
flake8 for theano/tensor/nnet/neighbours.py
上级
b92c918d
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
6 行增加
和
8 行删除
+6
-8
Conv3D.py
theano/tensor/nnet/Conv3D.py
+3
-3
neighbours.py
theano/tensor/nnet/neighbours.py
+3
-4
test_flake8.py
theano/tests/test_flake8.py
+0
-1
没有找到文件。
theano/tensor/nnet/Conv3D.py
浏览文件 @
ebcb4441
...
@@ -3,9 +3,6 @@ from __future__ import print_function
...
@@ -3,9 +3,6 @@ from __future__ import print_function
import
numpy
as
N
import
numpy
as
N
from
six.moves
import
xrange
from
six.moves
import
xrange
from
.
import
ConvGrad3D
from
.
import
ConvTransp3D
import
theano
import
theano
from
theano.tensor
import
basic
as
T
from
theano.tensor
import
basic
as
T
# from util import strutil
# from util import strutil
...
@@ -623,3 +620,6 @@ def computeH(V, W, b, d):
...
@@ -623,3 +620,6 @@ def computeH(V, W, b, d):
# print 'setting H[0] += '+str(w*v)+' W['+str((j,z,k,l,m))+']='+str(w)+' V['+str((i,d[0]*x+k,d[1]*y+l,d[2]*t+m,z))+']='+str(v)
# print 'setting H[0] += '+str(w*v)+' W['+str((j,z,k,l,m))+']='+str(w)+' V['+str((i,d[0]*x+k,d[1]*y+l,d[2]*t+m,z))+']='+str(v)
H
[
i
,
x
,
y
,
t
,
j
]
+=
w
*
v
H
[
i
,
x
,
y
,
t
,
j
]
+=
w
*
v
return
H
return
H
from
.
import
ConvGrad3D
from
.
import
ConvTransp3D
theano/tensor/nnet/neighbours.py
浏览文件 @
ebcb4441
...
@@ -2,15 +2,15 @@
...
@@ -2,15 +2,15 @@
TODO: implement Images2Neibs.infer_shape() methods
TODO: implement Images2Neibs.infer_shape() methods
"""
"""
from
six.moves
import
xrange
import
numpy
import
theano
import
theano
from
theano
import
Op
,
Apply
from
theano
import
Op
,
Apply
import
theano.tensor
as
T
import
theano.tensor
as
T
from
theano.gradient
import
grad_not_implemented
from
theano.gradient
import
grad_not_implemented
from
theano.gradient
import
grad_undefined
from
theano.gradient
import
grad_undefined
import
numpy
class
Images2Neibs
(
Op
):
class
Images2Neibs
(
Op
):
...
@@ -543,7 +543,6 @@ def neibs2images(neibs, neib_shape, original_shape, mode='valid'):
...
@@ -543,7 +543,6 @@ def neibs2images(neibs, neib_shape, original_shape, mode='valid'):
:func:`images2neibs <theano.sandbox.neigbours.neibs2images>` for
:func:`images2neibs <theano.sandbox.neigbours.neibs2images>` for
gradient computation.
gradient computation.
Example, which uses a tensor gained in example for
Example, which uses a tensor gained in example for
:func:`images2neibs <theano.sandbox.neigbours.neibs2images>`:
:func:`images2neibs <theano.sandbox.neigbours.neibs2images>`:
...
...
theano/tests/test_flake8.py
浏览文件 @
ebcb4441
...
@@ -89,7 +89,6 @@ whitelist_flake8 = [
...
@@ -89,7 +89,6 @@ 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/neighbours.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"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论