Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
321e2fc6
提交
321e2fc6
authored
8月 31, 2017
作者:
Vikram
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation changes. Combpressing tuple of two identical integers
上级
dc9f87d0
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
19 行增加
和
7 行删除
+19
-7
blas.py
theano/gpuarray/blas.py
+5
-2
abstract_conv.py
theano/tensor/nnet/abstract_conv.py
+9
-3
corr.py
theano/tensor/nnet/corr.py
+5
-2
没有找到文件。
theano/gpuarray/blas.py
浏览文件 @
321e2fc6
...
@@ -927,8 +927,11 @@ class GpuCorrMM(BaseGpuCorrMM):
...
@@ -927,8 +927,11 @@ class GpuCorrMM(BaseGpuCorrMM):
``'valid'`` for ``(0, 0)`` (valid convolution, no padding), ``'full'``
``'valid'`` for ``(0, 0)`` (valid convolution, no padding), ``'full'``
for ``(kernel_rows - 1, kernel_columns - 1)`` (full convolution),
for ``(kernel_rows - 1, kernel_columns - 1)`` (full convolution),
``'half'`` for ``(kernel_rows // 2, kernel_columns // 2)`` (same
``'half'`` for ``(kernel_rows // 2, kernel_columns // 2)`` (same
convolution for odd-sized kernels). Note that the two widths are each
convolution for odd-sized kernels).
applied twice, once per side (left and right, top and bottom).
If it is a tuple containing 2 pairs of integers, then these specify
the padding to be applied on each side ((left, right), (top, bottom)).
Otherwise, each width is applied twice, once per side (left and right,
top and bottom).
subsample
subsample
The subsample operation applied to each output image.
The subsample operation applied to each output image.
Should be a tuple with 2 elements.
Should be a tuple with 2 elements.
...
...
theano/tensor/nnet/abstract_conv.py
浏览文件 @
321e2fc6
...
@@ -1971,16 +1971,22 @@ class BaseAbstractConv(Op):
...
@@ -1971,16 +1971,22 @@ class BaseAbstractConv(Op):
raise
ValueError
(
raise
ValueError
(
'invalid border_mode {}, which must be a '
'invalid border_mode {}, which must be a '
'tuple of length {}'
.
format
(
border_mode
,
convdim
))
'tuple of length {}'
.
format
(
border_mode
,
convdim
))
new_border_mode
=
()
for
mode
in
border_mode
:
for
mode
in
border_mode
:
if
isinstance
(
mode
,
tuple
)
and
convdim
!=
2
:
raise
NotImplementedError
(
'Asymmetric padding not implemented for {}D'
.
format
(
convdim
))
if
not
((
isinstance
(
mode
,
integer_types
)
and
mode
>=
0
)
or
if
not
((
isinstance
(
mode
,
integer_types
)
and
mode
>=
0
)
or
(
isinstance
(
mode
,
tuple
)
and
len
(
mode
)
==
2
and
min
(
mode
)
>=
0
and
(
isinstance
(
mode
,
tuple
)
and
len
(
mode
)
==
2
and
min
(
mode
)
>=
0
and
all
(
isinstance
(
m
,
integer_types
)
for
m
in
mode
))):
all
(
isinstance
(
m
,
integer_types
)
for
m
in
mode
))):
raise
ValueError
(
raise
ValueError
(
'invalid border mode {}. The tuple can only contain integers '
'invalid border mode {}. The tuple can only contain integers '
' or pairs of integers'
.
format
(
border_mode
))
' or pairs of integers'
.
format
(
border_mode
))
if
isinstance
(
mode
,
tuple
):
if
convdim
!=
2
:
raise
NotImplementedError
(
'Asymmetric padding not implemented for {}D'
.
format
(
convdim
))
if
mode
[
0
]
==
mode
[
1
]:
mode
=
mode
[
0
]
new_border_mode
+=
(
mode
,)
border_mode
=
new_border_mode
elif
border_mode
not
in
(
'valid'
,
'full'
,
'half'
):
elif
border_mode
not
in
(
'valid'
,
'full'
,
'half'
):
raise
ValueError
(
raise
ValueError
(
'invalid border_mode {}, which must be either '
'invalid border_mode {}, which must be either '
...
...
theano/tensor/nnet/corr.py
浏览文件 @
321e2fc6
...
@@ -603,8 +603,11 @@ class CorrMM(BaseCorrMM):
...
@@ -603,8 +603,11 @@ class CorrMM(BaseCorrMM):
``'valid'`` for ``(0, 0)`` (valid convolution, no padding), ``'full'``
``'valid'`` for ``(0, 0)`` (valid convolution, no padding), ``'full'``
for ``(kernel_rows - 1, kernel_columns - 1)`` (full convolution),
for ``(kernel_rows - 1, kernel_columns - 1)`` (full convolution),
``'half'`` for ``(kernel_rows // 2, kernel_columns // 2)`` (same
``'half'`` for ``(kernel_rows // 2, kernel_columns // 2)`` (same
convolution for odd-sized kernels). Note that the two widths are each
convolution for odd-sized kernels).
applied twice, once per side (left and right, top and bottom).
If it is a tuple containing 2 pairs of integers, then these specify
the padding to be applied on each side ((left, right), (top, bottom)).
Otherwise, each width is applied twice, once per side (left and right,
top and bottom).
subsample
subsample
The subsample operation applied to each output image.
The subsample operation applied to each output image.
Should be a tuple with 2 elements.
Should be a tuple with 2 elements.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论