Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ad987df5
提交
ad987df5
authored
10月 16, 2011
作者:
David Warde-Farley
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
DOC: spelling/grammar fixes to pull request #122
上级
a22086b0
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
11 行删除
+11
-11
conv.py
theano/tensor/nnet/conv.py
+11
-11
没有找到文件。
theano/tensor/nnet/conv.py
浏览文件 @
ad987df5
...
@@ -943,16 +943,16 @@ using namespace std;
...
@@ -943,16 +943,16 @@ using namespace std;
d
[
"dim_zz_const"
]
=
"const"
d
[
"dim_zz_const"
]
=
"const"
d
[
"dim_zz_affect"
]
=
""
d
[
"dim_zz_affect"
]
=
""
d
[
"assert_size"
]
=
"""
d
[
"assert_size"
]
=
"""
// Check the batch size and the number of kernel (sometimes constant in the graph)
// Check the batch size and the number of kernel
s
(sometimes constant in the graph)
if(img2d_dim[0] !=
%(self_bsize)
s!=0){
if(img2d_dim[0] !=
%(self_bsize)
s!=0){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the batch size in the image
(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the batch size in the image
(
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)img2d_dim[0], (long)
%(self_bsize)
s);
(long)img2d_dim[0], (long)
%(self_bsize)
s);
%(fail)
s;
%(fail)
s;
}
}
if(kerns_dim[0] !=
%(self_nkern)
s!=0){
if(kerns_dim[0] !=
%(self_nkern)
s!=0){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the number of kernel
in the filter(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the number of kernel
s in the filter (
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)kerns_dim[0], (long)
%(self_nkern)
s);
(long)kerns_dim[0], (long)
%(self_nkern)
s);
%(fail)
s;
%(fail)
s;
}
}
...
@@ -960,19 +960,19 @@ if(kerns_dim[0] != %(self_nkern)s!=0){
...
@@ -960,19 +960,19 @@ if(kerns_dim[0] != %(self_nkern)s!=0){
// Check the size of the image (sometimes constant in the graph)
// Check the size of the image (sometimes constant in the graph)
if(img2d_dim[1] !=
%(self_imshp0)
s){
if(img2d_dim[1] !=
%(self_imshp0)
s){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the
stack size in the image(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the
image stack size (
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)img2d_dim[1], (long)
%(self_imshp0)
s);
(long)img2d_dim[1], (long)
%(self_imshp0)
s);
%(fail)
s;
%(fail)
s;
}
}
if(img2d_dim[2] !=
%(self_imshp1)
s){
if(img2d_dim[2] !=
%(self_imshp1)
s){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the number of row
in the image(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the number of row
s in the image (
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)img2d_dim[2], (long)
%(self_imshp1)
s);
(long)img2d_dim[2], (long)
%(self_imshp1)
s);
%(fail)
s;
%(fail)
s;
}
}
if(img2d_dim[3] !=
%(self_imshp2)
s){
if(img2d_dim[3] !=
%(self_imshp2)
s){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the number of col
in the image(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the number of col
umns in the image (
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)img2d_dim[3], (long)
%(self_imshp2)
s);
(long)img2d_dim[3], (long)
%(self_imshp2)
s);
%(fail)
s;
%(fail)
s;
}
}
...
@@ -980,13 +980,13 @@ if(img2d_dim[3] != %(self_imshp2)s){
...
@@ -980,13 +980,13 @@ if(img2d_dim[3] != %(self_imshp2)s){
// Check the size of the output (sometimes constant in the graph)
// Check the size of the output (sometimes constant in the graph)
if(dim_zz[0] !=
%(self_outshp0)
s!=0){
if(dim_zz[0] !=
%(self_outshp0)
s!=0){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the precomputed number of row
in the output(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the precomputed number of row
s in the output (
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)dim_zz[0], (long)
%(self_outshp0)
s);
(long)dim_zz[0], (long)
%(self_outshp0)
s);
%(fail)
s;
%(fail)
s;
}
}
if(dim_zz[1] !=
%(self_outshp1)
s!=0){
if(dim_zz[1] !=
%(self_outshp1)
s!=0){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the precomputed number of col
in the output(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the precomputed number of col
umns in the output (
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)dim_zz[1], (long)
%(self_outshp1)
s);
(long)dim_zz[1], (long)
%(self_outshp1)
s);
%(fail)
s;
%(fail)
s;
}
}
...
@@ -994,19 +994,19 @@ if(dim_zz[1] != %(self_outshp1)s!=0){
...
@@ -994,19 +994,19 @@ if(dim_zz[1] != %(self_outshp1)s!=0){
// Check the size of the filter (sometimes constant in the graph)
// Check the size of the filter (sometimes constant in the graph)
if(kerns_dim[1]
%% %(self_imshp0)
s!=0){
if(kerns_dim[1]
%% %(self_imshp0)
s!=0){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the
stack size in the filter(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the
filter stack size (
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)kerns_dim[1], (long)
%(self_imshp0)
s);
(long)kerns_dim[1], (long)
%(self_imshp0)
s);
%(fail)
s;
%(fail)
s;
}
}
if(kerns_dim[2]
%% %(self_kshp0)
s!=0){
if(kerns_dim[2]
%% %(self_kshp0)
s!=0){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the number of row
in the filter(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the number of row
s in the filter (
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)kerns_dim[2], (long)
%(self_kshp0)
s);
(long)kerns_dim[2], (long)
%(self_kshp0)
s);
%(fail)
s;
%(fail)
s;
}
}
if(kerns_dim[3]
%% %(self_kshp1)
s!=0){
if(kerns_dim[3]
%% %(self_kshp1)
s!=0){
PyErr_Format(PyExc_ValueError,
PyErr_Format(PyExc_ValueError,
"the number of columns in the filter
(
%%
ld) at run time is different then at build time
(
%%
ld) for the ConvOp.",
"the number of columns in the filter
(
%%
ld) at run time is different than at build time
(
%%
ld) for the ConvOp.",
(long)kerns_dim[3], (long)
%(self_kshp1)
s);
(long)kerns_dim[3], (long)
%(self_kshp1)
s);
%(fail)
s;
%(fail)
s;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论