提交 dd9e38e1 authored 作者: Shawn Tan's avatar Shawn Tan

Modifications for backwards compatibility

上级 e4681a78
...@@ -1627,7 +1627,12 @@ KERNEL void eye(GLOBAL_MEM %(ctype)s *a, ga_size n, ga_size m, ga_ssize k) { ...@@ -1627,7 +1627,12 @@ KERNEL void eye(GLOBAL_MEM %(ctype)s *a, ga_size n, ga_size m, ga_ssize k) {
objvar='k_eye_' + name)] objvar='k_eye_' + name)]
def c_code(self, node, name, inp, out, sub): def c_code(self, node, name, inp, out, sub):
n, m, k = inp if len(inp) == 2:
n, m = inp
k = 0
elif len(inp) == 3:
n, m, k = inp
z, = out z, = out
fail = sub['fail'] fail = sub['fail']
ctx = sub['params'] ctx = sub['params']
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论