提交 a8c03627 authored 作者: Frederic's avatar Frederic

Override perform() (otherwise DebugMode and py linker would use it)

上级 de775205
......@@ -596,6 +596,8 @@ class GpuCAReduce(GpuOp):
# been added to the python bindings yet
z[0] = x.reduce_sum(self.reduce_mask)
"""
def perform(self, node, inp, out):
raise MethodNotDefined("")
def supports_c_code(self, inputs):
""" Returns True if the current op and reduce pattern
......
......@@ -72,3 +72,9 @@ class test_GpuCAReduce(test_GpuCAReduceCPY):
bin_dtypes = ["uint8", "int8"]
op = GpuCAReduce
reds = [scalar.add, scalar.mul]
def test_perform(self):
return
def test_perform_nan(self):
return
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论