提交 df7d2c85 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Indentation.

上级 66420cf5
...@@ -609,25 +609,25 @@ if config.floatX=='float32': ...@@ -609,25 +609,25 @@ if config.floatX=='float32':
# This is probably caused by our way of computing the gradient error. # This is probably caused by our way of computing the gradient error.
div_grad_rtol=0.025 div_grad_rtol=0.025
TrueDivTester = makeBroadcastTester(op = tensor.true_div, TrueDivTester = makeBroadcastTester(
op=tensor.true_div,
expected = (lambda x, y: expected = (lambda x, y:
check_floatX((x, y), check_floatX((x, y), numpy.true_divide(x, y))),
numpy.true_divide(x, y))), good=_good_broadcast_div_mod_normal_float,
good = _good_broadcast_div_mod_normal_float, grad=_grad_broadcast_div_mod_normal,
grad = _grad_broadcast_div_mod_normal,
grad_rtol=div_grad_rtol, grad_rtol=div_grad_rtol,
) )
TrueDivInplaceTester = makeBroadcastTester(op = inplace.true_div_inplace, TrueDivInplaceTester = makeBroadcastTester(
expected = (lambda x, y: op=inplace.true_div_inplace,
numpy.true_divide(x, y)), expected=(lambda x, y: numpy.true_divide(x, y)),
good = copymod( good=copymod(
_good_broadcast_div_mod_normal_float_inplace, _good_broadcast_div_mod_normal_float_inplace,
# The output is now in float, we cannot work inplace on an int. # The output is now in float, we cannot work inplace on an int.
without=['integer', 'uinteger']), without=['integer', 'uinteger']),
grad = _grad_broadcast_div_mod_normal, grad=_grad_broadcast_div_mod_normal,
grad_rtol=div_grad_rtol, grad_rtol=div_grad_rtol,
inplace = True) inplace=True)
CeilIntDivTester = makeBroadcastTester( CeilIntDivTester = makeBroadcastTester(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论