提交 24b5f513 authored 作者: Frederic's avatar Frederic

Remove fct not used anymore.

上级 89a4be5d
...@@ -567,7 +567,6 @@ class GpuCAReduce(GpuOp): ...@@ -567,7 +567,6 @@ class GpuCAReduce(GpuOp):
def perform(self, node, inp, out): def perform(self, node, inp, out):
x, = inp x, = inp
z, = out z, = out
self._op_guard()
# reduce_max is declared but does nothing but # reduce_max is declared but does nothing but
# raise NotImplementedError. # raise NotImplementedError.
# We can't call it here anyway because it hasn't # We can't call it here anyway because it hasn't
...@@ -1585,11 +1584,6 @@ class GpuCAReduce(GpuOp): ...@@ -1585,11 +1584,6 @@ class GpuCAReduce(GpuOp):
else: else:
return () return ()
def _op_guard(self):
""" Raises NotImplementedError if op is not Add """
if not isinstance(self.scalar_op, theano.scalar.basic.Add):
raise NotImplementedError()
def c_support_code_apply(self, node, nodename): def c_support_code_apply(self, node, nodename):
sio = StringIO() sio = StringIO()
nd_in = len(self.reduce_mask) nd_in = len(self.reduce_mask)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论