提交 9f7b2e71 authored 作者: Sina Honari's avatar Sina Honari

adding the changes requested.

上级 e14f7a33
...@@ -341,12 +341,6 @@ class ScanOp(PureOp): ...@@ -341,12 +341,6 @@ class ScanOp(PureOp):
rval.lazy = False rval.lazy = False
return rval return rval
def grad(self, args, g_outs):
raise NotImplementedError()
def R_op(self, inputs, eval_points):
raise NotImplementedError()
@theano.compile.profilemode.register_profiler_printer @theano.compile.profilemode.register_profiler_printer
def profile_printer(fct_name, compile_time, fct_call_time, fct_call, def profile_printer(fct_name, compile_time, fct_call_time, fct_call,
......
...@@ -135,6 +135,9 @@ class Binomial(gof.op.Op): ...@@ -135,6 +135,9 @@ class Binomial(gof.op.Op):
csx_matrix = getattr(scipy.sparse, self.format + '_matrix') csx_matrix = getattr(scipy.sparse, self.format + '_matrix')
out[0] = csx_matrix(binomial, dtype=self.dtype) out[0] = csx_matrix(binomial, dtype=self.dtype)
def connection_pattern(self, node):
return [[True], [True], [False]]
def grad(self, (n, p, shape, ), (gz,)): def grad(self, (n, p, shape, ), (gz,)):
comment_n = "No gradient exists for the number of samples in class\ comment_n = "No gradient exists for the number of samples in class\
Binomial of theano/sparse/sandbox/sp2.py" Binomial of theano/sparse/sandbox/sp2.py"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论