提交 49d2b14b authored 作者: Ian Goodfellow's avatar Ian Goodfellow

fixed typo in error message

上级 fe49c390
...@@ -211,7 +211,7 @@ def grad_not_implemented(op, x_pos, x, comment = ""): ...@@ -211,7 +211,7 @@ def grad_not_implemented(op, x_pos, x, comment = ""):
return NaNType("This variable is NaN because the grad method for " + \ return NaNType("This variable is NaN because the grad method for " + \
"input "+str(x_pos)+" ("+str(x)+") of the "+str(op)+" op is" + \ "input "+str(x_pos)+" ("+str(x)+") of the "+str(op)+" op is" + \
"not implemented.")() " not implemented.")()
def grad_undefined(op, x_pos, x, comment = ""): def grad_undefined(op, x_pos, x, comment = ""):
""" """
...@@ -229,7 +229,7 @@ def grad_undefined(op, x_pos, x, comment = ""): ...@@ -229,7 +229,7 @@ def grad_undefined(op, x_pos, x, comment = ""):
return NaNType("This variable is NaN because the gradient for " + \ return NaNType("This variable is NaN because the gradient for " + \
"input "+str(x_pos)+" ("+str(x)+") of the "+str(op)+" op is" + \ "input "+str(x_pos)+" ("+str(x)+") of the "+str(op)+" op is" + \
"mathematically undefined.")() " mathematically undefined.")()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论