提交 4591a716 authored 作者: Lv Tao's avatar Lv Tao

Issue #5978

上级 177cc884
...@@ -804,8 +804,8 @@ theano.compile.register_specify_shape_c_code( ...@@ -804,8 +804,8 @@ theano.compile.register_specify_shape_c_code(
PyErr_Format(PyExc_AssertionError, PyErr_Format(PyExc_AssertionError,
"SpecifyShape: vector of shape has %%d elements," "SpecifyShape: vector of shape has %%d elements,"
" but the input has %%d dimensions.", " but the input has %%d dimensions.",
PyArray_NDIM(%(iname)s), PyArray_DIMS(%(shape)s)[0],
PyArray_DIMS(%(shape)s)[0]); PyArray_NDIM(%(iname)s));
%(fail)s; %(fail)s;
} }
for(int i = 0; i < PyArray_NDIM(%(iname)s); i++){ for(int i = 0; i < PyArray_NDIM(%(iname)s); i++){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论