提交 06a256ea authored 作者: Frederic Bastien's avatar Frederic Bastien

remove useless import, fix logger name and auto indent fix.

上级 ccb4912a
...@@ -9,8 +9,7 @@ __docformat__ = "restructuredtext en" ...@@ -9,8 +9,7 @@ __docformat__ = "restructuredtext en"
import __builtin__ import __builtin__
import logging import logging
_logger = logging.getLogger('theano.gradient') _logger = logging.getLogger('theano.tensor.tensor_grad')
import sys
import numpy #for numeric_grad import numpy #for numeric_grad
...@@ -114,7 +113,7 @@ def Rop(f, wrt, eval_points): ...@@ -114,7 +113,7 @@ def Rop(f, wrt, eval_points):
if len(rval) == 1: if len(rval) == 1:
return rval[0] return rval[0]
else: else:
return rval return rval
def Lop(f, wrt, eval_points, consider_constant=[], warn_type=False, def Lop(f, wrt, eval_points, consider_constant=[], warn_type=False,
...@@ -603,4 +602,3 @@ class GradientError(Exception): ...@@ -603,4 +602,3 @@ class GradientError(Exception):
self.rel_err, self.rel_tol) self.rel_err, self.rel_tol)
verify_grad.E_grad = GradientError verify_grad.E_grad = GradientError
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论