提交 08b61cbb authored 作者: Frederic's avatar Frederic

revert new change that need more investigation. It was probably supported, but not tested.

上级 f6dcb8e5
...@@ -1158,21 +1158,21 @@ if(dim_zz[1] != %(self_outshp1)s!=0){ ...@@ -1158,21 +1158,21 @@ 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 filter stack size (%%ld) at run time is different than at" "the filter stack size (%%ld) at run time is different than at"
" build time (%%ld) for the ConvOp.", " 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 rows in the filter (%%ld) at run time is different" "the number of rows in the filter (%%ld) at run time is different"
" than at build time (%%ld) for the ConvOp.", " 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" "the number of columns in the filter (%%ld) at run time is"
" different than at build time (%%ld) for the ConvOp.", " different than at build time (%%ld) for the ConvOp.",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论