提交 792d5d2d authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix old problems in Theano that we now trigger

上级 8b368cc8
......@@ -3064,7 +3064,7 @@ arctan = ArcTan(upgrade_to_float, name='arctan')
class ArcTan2(BinaryScalarOp):
nfunc_spec = ('arctan2', 1, 1)
nfunc_spec = ('arctan2', 2, 1)
def impl(self, y, x):
# If x and y are int8 or uint8, numpy.arctan2 will compute the result
......
......@@ -1015,7 +1015,7 @@ class GetItemList(gof.op.Op):
def grad(self, inputs, g_outputs):
x, indices = inputs
gout, = g_outputs
return [GetItemListGrad(self)(x, indices, gout),
return [GetItemListGrad()(x, indices, gout),
grad_undefined(self, 1, indices, "No gradient for this input")]
get_item_list = GetItemList()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论