提交 a4ef51fa authored 作者: Ian Goodfellow's avatar Ian Goodfellow

my pep8 fix broke the build, fixed it here

上级 286e1df5
...@@ -70,11 +70,11 @@ def grad_not_implemented(op, x_pos, x, comment=""): ...@@ -70,11 +70,11 @@ def grad_not_implemented(op, x_pos, x, comment=""):
gradient is not implemented. gradient is not implemented.
""" """
return NullType( return (NullType(
( (
"This variable is Null because the grad method for " "This variable is Null because the grad method for "
"input %s (%s) of the %s op is not implemented. %s" "input %s (%s) of the %s op is not implemented. %s"
) % (x_pos, x, op, comment)) ) % (x_pos, x, op, comment)))()
def grad_undefined(op, x_pos, x, comment=""): def grad_undefined(op, x_pos, x, comment=""):
...@@ -91,11 +91,11 @@ def grad_undefined(op, x_pos, x, comment=""): ...@@ -91,11 +91,11 @@ def grad_undefined(op, x_pos, x, comment=""):
gradient is not defined. gradient is not defined.
""" """
return NullType( return (NullType(
( (
"This variable is Null because the grad method for " "This variable is Null because the grad method for "
"input %s (%s) of the %s op is mathematically undefined. %s" "input %s (%s) of the %s op is mathematically undefined. %s"
) % (x_pos, x, op, comment)) ) % (x_pos, x, op, comment)))()
class DisconnectedType(theano.gof.type.Type): class DisconnectedType(theano.gof.type.Type):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论