提交 9c5109ba authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Little fix to deal with ops that are child of PureOp

上级 f7553bee
...@@ -1221,7 +1221,10 @@ class OpWiseCLinker(link.LocalLinker): ...@@ -1221,7 +1221,10 @@ class OpWiseCLinker(link.LocalLinker):
for node in order: for node in order:
# Maker sure we use the C version of the code whenever # Maker sure we use the C version of the code whenever
# possible # possible
old_value = node.op._op_use_c_code # There are ops that don't have _op_use_c_code property
# for example ifelse (or any ops that come with their own
# make_thunk
old_value = getattr(node.op,'_op_use_c_code', False)
try: try:
node.op._op_use_c_code = True node.op._op_use_c_code = True
thunks += [node.op.make_thunk(node, thunks += [node.op.make_thunk(node,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论