提交 6b0904c4 authored 作者: Frederic Bastien's avatar Frederic Bastien

scalar.Composite.c_code now use a dummy id if it don't receive one. Neede for the gpu elemwise.

上级 cda3bde3
......@@ -1273,6 +1273,11 @@ class Composite(ScalarOp):
onames),
**sub)
d['name'] = name
if not sub.has_key('id'):
#The use of a dummy id is safe as the code is in a separate block.
#It won't generate conflicting variable name.
d['id']='_DUMMY_ID_'
return self._c_code % d
def __eq__(self, other):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论