Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
018aa096
提交
018aa096
authored
10月 29, 2014
作者:
serdyuk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Moved neighbours into tensor.nnet
上级
b6ea8d67
全部展开
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
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
没有找到文件。
theano/sandbox/cuda/neighbours.py
浏览文件 @
018aa096
...
@@ -3,7 +3,7 @@ from theano import Op, Apply, tensor
...
@@ -3,7 +3,7 @@ from theano import Op, Apply, tensor
from
theano.gof
import
local_optimizer
from
theano.gof
import
local_optimizer
from
theano.sandbox.cuda
import
cuda_available
,
GpuOp
from
theano.sandbox.cuda
import
cuda_available
,
GpuOp
from
theano.
sandbox
.neighbours
import
Images2Neibs
from
theano.
tensor.nnet
.neighbours
import
Images2Neibs
if
cuda_available
:
if
cuda_available
:
from
theano.sandbox.cuda
import
CudaNdarrayType
from
theano.sandbox.cuda
import
CudaNdarrayType
...
...
theano/sandbox/cuda/opt.py
浏览文件 @
018aa096
...
@@ -95,13 +95,13 @@ register_opt(name='gpu_constant_folding')(
...
@@ -95,13 +95,13 @@ register_opt(name='gpu_constant_folding')(
# moved to the GPU. This list is used by an optimization.
# moved to the GPU. This list is used by an optimization.
# Hopefully, we can keep this list up to date.
# Hopefully, we can keep this list up to date.
import
theano.tensor.signal.downsample
import
theano.tensor.signal.downsample
import
theano.
sandbox
.neighbours
import
theano.
tensor.nnet
.neighbours
cpu_ops_moved_to_gpu
=
[
cpu_ops_moved_to_gpu
=
[
tensor
.
blas
.
Dot22
,
tensor
.
blas
.
Dot22Scalar
,
tensor
.
blas
.
Gemm
,
tensor
.
blas
.
Dot22
,
tensor
.
blas
.
Dot22Scalar
,
tensor
.
blas
.
Gemm
,
tensor
.
blas
.
Gemv
,
tensor
.
blas
.
Ger
,
tensor
.
nnet
.
conv
.
ConvOp
,
tensor
.
blas
.
Gemv
,
tensor
.
blas
.
Ger
,
tensor
.
nnet
.
conv
.
ConvOp
,
tensor
.
signal
.
downsample
.
DownsampleFactorMax
,
tensor
.
signal
.
downsample
.
DownsampleFactorMax
,
tensor
.
signal
.
downsample
.
DownsampleFactorMaxGrad
,
tensor
.
signal
.
downsample
.
DownsampleFactorMaxGrad
,
theano
.
sandbox
.
neighbours
.
Images2Neibs
,
theano
.
tensor
.
nnet
.
neighbours
.
Images2Neibs
,
tensor
.
nnet
.
CrossentropySoftmaxArgmax1HotWithBias
,
tensor
.
nnet
.
CrossentropySoftmaxArgmax1HotWithBias
,
tensor
.
nnet
.
CrossentropySoftmax1HotWithBiasDx
,
tensor
.
nnet
.
CrossentropySoftmax1HotWithBiasDx
,
tensor
.
nnet
.
Softmax
,
tensor
.
nnet
.
SoftmaxWithBias
,
tensor
.
nnet
.
Softmax
,
tensor
.
nnet
.
SoftmaxWithBias
,
...
...
theano/sandbox/cuda/tests/test_neighbours.py
浏览文件 @
018aa096
...
@@ -5,7 +5,7 @@ import theano.sandbox.cuda as cuda_ndarray
...
@@ -5,7 +5,7 @@ import theano.sandbox.cuda as cuda_ndarray
if
cuda_ndarray
.
cuda_available
==
False
:
if
cuda_ndarray
.
cuda_available
==
False
:
raise
SkipTest
(
'Optional package cuda disabled'
)
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
from
theano.sandbox.cuda.neighbours
import
GpuImages2Neibs
if
theano
.
config
.
mode
==
'FAST_COMPILE'
:
if
theano
.
config
.
mode
==
'FAST_COMPILE'
:
...
@@ -14,7 +14,7 @@ else:
...
@@ -14,7 +14,7 @@ else:
mode_with_gpu
=
theano
.
compile
.
mode
.
get_default_mode
()
.
including
(
'gpu'
)
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
mode
=
mode_with_gpu
op
=
GpuImages2Neibs
op
=
GpuImages2Neibs
dtypes
=
[
'float32'
]
dtypes
=
[
'float32'
]
...
...
theano/sandbox/gpuarray/neighbours.py
浏览文件 @
018aa096
...
@@ -2,7 +2,7 @@ import numpy
...
@@ -2,7 +2,7 @@ import numpy
from
theano
import
Op
,
Apply
,
config
from
theano
import
Op
,
Apply
,
config
from
theano.gof
import
local_optimizer
from
theano.gof
import
local_optimizer
from
theano.
sandbox
.neighbours
import
Images2Neibs
from
theano.
tensor.nnet
.neighbours
import
Images2Neibs
import
theano.tensor
as
T
import
theano.tensor
as
T
try
:
try
:
...
...
theano/sandbox/gpuarray/tests/test_neighbours.py
浏览文件 @
018aa096
...
@@ -4,11 +4,11 @@ import unittest
...
@@ -4,11 +4,11 @@ import unittest
from
theano.sandbox.gpuarray.tests.test_basic_ops
import
(
mode_with_gpu
,
from
theano.sandbox.gpuarray.tests.test_basic_ops
import
(
mode_with_gpu
,
mode_without_gpu
)
mode_without_gpu
)
import
theano.
sandbox
.test_neighbours
import
theano.
tensor.nnet.tests
.test_neighbours
from
theano.sandbox.gpuarray.neighbours
import
GpuImages2Neibs
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
mode
=
mode_with_gpu
op
=
GpuImages2Neibs
op
=
GpuImages2Neibs
dtypes
=
[
'int64'
,
'float32'
,
'float64'
]
dtypes
=
[
'int64'
,
'float32'
,
'float64'
]
...
...
theano/sandbox/neighbours.py
浏览文件 @
018aa096
差异被折叠。
点击展开。
theano/tensor/nnet/neighbours.py
0 → 100644
浏览文件 @
018aa096
差异被折叠。
点击展开。
theano/
sandbox
/test_neighbours.py
→
theano/
tensor/nnet/tests
/test_neighbours.py
浏览文件 @
018aa096
...
@@ -6,7 +6,7 @@ import theano
...
@@ -6,7 +6,7 @@ import theano
from
theano
import
shared
,
function
from
theano
import
shared
,
function
from
theano.gof.python25
import
any
from
theano.gof.python25
import
any
import
theano.tensor
as
T
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
from
theano.tests
import
unittest_tools
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论