Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
f423ac63
提交
f423ac63
authored
11月 17, 2014
作者:
carriepl
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2197 from dmitriy-serdyuk/doc_fix
Documentation for sliding windows
上级
f83eb40d
76062c33
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
30 行增加
和
9 行删除
+30
-9
basic.txt
doc/library/tensor/basic.txt
+1
-0
index.txt
doc/library/tensor/nnet/index.txt
+1
-0
neighbours.txt
doc/library/tensor/nnet/neighbours.txt
+19
-0
neighbours.py
theano/sandbox/cuda/neighbours.py
+1
-1
opt.py
theano/sandbox/cuda/opt.py
+2
-2
test_neighbours.py
theano/sandbox/cuda/tests/test_neighbours.py
+2
-2
neighbours.py
theano/sandbox/gpuarray/neighbours.py
+1
-1
test_neighbours.py
theano/sandbox/gpuarray/tests/test_neighbours.py
+2
-2
neighbours.py
theano/sandbox/neighbours.py
+0
-0
neighbours.py
theano/tensor/nnet/neighbours.py
+0
-0
test_neighbours.py
theano/tensor/nnet/tests/test_neighbours.py
+1
-1
没有找到文件。
doc/library/tensor/basic.txt
浏览文件 @
f423ac63
...
...
@@ -1000,6 +1000,7 @@ Reductions
:Returns: A new array holding the result.
.. _indexing:
Indexing
========
...
...
doc/library/tensor/nnet/index.txt
浏览文件 @
f423ac63
...
...
@@ -18,3 +18,4 @@ and ops which are particular to neural networks and deep learning.
conv
nnet
neighbours
doc/library/tensor/nnet/neighbours.txt
0 → 100644
浏览文件 @
f423ac63
.. _libdoc_tensor_nnet_neighbours:
=======================================================================
:mod:`neighbours` -- Ops for working with images in convolutional nets
=======================================================================
.. module:: sandbox.neighbours
:platform: Unix, Windows
:synopsis: Ops for working with images in conv nets
.. moduleauthor:: LISA
- Functions
.. autofunction:: theano.tensor.nnet.neighbours.images2neibs
.. autofunction:: theano.tensor.nnet.neighbours.neibs2images
- See also: :ref:`indexing`, :ref:`lib_scan`
theano/sandbox/cuda/neighbours.py
浏览文件 @
f423ac63
...
...
@@ -3,7 +3,7 @@ from theano import Op, Apply, tensor
from
theano.gof
import
local_optimizer
from
theano.sandbox.cuda
import
cuda_available
,
GpuOp
from
theano.
sandbox
.neighbours
import
Images2Neibs
from
theano.
tensor.nnet
.neighbours
import
Images2Neibs
if
cuda_available
:
from
theano.sandbox.cuda
import
CudaNdarrayType
...
...
theano/sandbox/cuda/opt.py
浏览文件 @
f423ac63
...
...
@@ -95,13 +95,13 @@ register_opt(name='gpu_constant_folding')(
# moved to the GPU. This list is used by an optimization.
# Hopefully, we can keep this list up to date.
import
theano.tensor.signal.downsample
import
theano.
sandbox
.neighbours
import
theano.
tensor.nnet
.neighbours
cpu_ops_moved_to_gpu
=
[
tensor
.
blas
.
Dot22
,
tensor
.
blas
.
Dot22Scalar
,
tensor
.
blas
.
Gemm
,
tensor
.
blas
.
Gemv
,
tensor
.
blas
.
Ger
,
tensor
.
nnet
.
conv
.
ConvOp
,
tensor
.
signal
.
downsample
.
DownsampleFactorMax
,
tensor
.
signal
.
downsample
.
DownsampleFactorMaxGrad
,
theano
.
sandbox
.
neighbours
.
Images2Neibs
,
theano
.
tensor
.
nnet
.
neighbours
.
Images2Neibs
,
tensor
.
nnet
.
CrossentropySoftmaxArgmax1HotWithBias
,
tensor
.
nnet
.
CrossentropySoftmax1HotWithBiasDx
,
tensor
.
nnet
.
Softmax
,
tensor
.
nnet
.
SoftmaxWithBias
,
...
...
theano/sandbox/cuda/tests/test_neighbours.py
浏览文件 @
f423ac63
...
...
@@ -5,7 +5,7 @@ import theano.sandbox.cuda as cuda_ndarray
if
cuda_ndarray
.
cuda_available
==
False
:
raise
SkipTest
(
'Optional package cuda disabled'
)
import
theano.
sandbox
.test_neighbours
import
theano.
tensor.nnet.tests
.test_neighbours
from
theano.sandbox.cuda.neighbours
import
GpuImages2Neibs
if
theano
.
config
.
mode
==
'FAST_COMPILE'
:
...
...
@@ -14,7 +14,7 @@ else:
mode_with_gpu
=
theano
.
compile
.
mode
.
get_default_mode
()
.
including
(
'gpu'
)
class
T_GpuImages2Neibs
(
theano
.
sandbox
.
test_neighbours
.
T_Images2Neibs
):
class
T_GpuImages2Neibs
(
theano
.
tensor
.
nnet
.
tests
.
test_neighbours
.
T_Images2Neibs
):
mode
=
mode_with_gpu
op
=
GpuImages2Neibs
dtypes
=
[
'float32'
]
...
...
theano/sandbox/gpuarray/neighbours.py
浏览文件 @
f423ac63
...
...
@@ -2,7 +2,7 @@ import numpy
from
theano
import
Op
,
Apply
,
config
from
theano.gof
import
local_optimizer
from
theano.
sandbox
.neighbours
import
Images2Neibs
from
theano.
tensor.nnet
.neighbours
import
Images2Neibs
import
theano.tensor
as
T
try
:
...
...
theano/sandbox/gpuarray/tests/test_neighbours.py
浏览文件 @
f423ac63
...
...
@@ -4,11 +4,11 @@ import unittest
from
theano.sandbox.gpuarray.tests.test_basic_ops
import
(
mode_with_gpu
,
mode_without_gpu
)
import
theano.
sandbox
.test_neighbours
import
theano.
tensor.nnet.tests
.test_neighbours
from
theano.sandbox.gpuarray.neighbours
import
GpuImages2Neibs
class
T_GpuImages2Neibs
(
theano
.
sandbox
.
test_neighbours
.
T_Images2Neibs
):
class
T_GpuImages2Neibs
(
theano
.
tensor
.
nnet
.
tests
.
test_neighbours
.
T_Images2Neibs
):
mode
=
mode_with_gpu
op
=
GpuImages2Neibs
dtypes
=
[
'int64'
,
'float32'
,
'float64'
]
...
...
theano/sandbox/neighbours.py
浏览文件 @
f423ac63
差异被折叠。
点击展开。
theano/tensor/nnet/neighbours.py
0 → 100644
浏览文件 @
f423ac63
差异被折叠。
点击展开。
theano/
sandbox
/test_neighbours.py
→
theano/
tensor/nnet/tests
/test_neighbours.py
浏览文件 @
f423ac63
...
...
@@ -6,7 +6,7 @@ import theano
from
theano
import
shared
,
function
from
theano.gof.python25
import
any
import
theano.tensor
as
T
from
neighbours
import
images2neibs
,
neibs2images
,
Images2Neibs
from
theano.tensor.nnet.
neighbours
import
images2neibs
,
neibs2images
,
Images2Neibs
from
theano.tests
import
unittest_tools
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论