提交 48a980a0 authored 作者: Frederic Bastien's avatar Frederic Bastien

added comment.

上级 f81f7893
......@@ -867,6 +867,8 @@ class NaiveAlgo(object):
print >> sio, """
int dims[%(nd)s] = {%(initial_dims)s};
""" %locals()
#check that all inputs have valid dimensions
for iname in inputs:
print >> sio, """
//std::cerr << "C_CODE %(opname)s checking input %(iname)s\\n";
......@@ -891,6 +893,7 @@ class NaiveAlgo(object):
}
""" %locals()
#check that all outputs have valid dimensions
for oname in outputs:
print >> sio, """
for (int i = 0; (i< %(nd)s) && (cnda_%(oname)s); ++i) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论