提交 13b48305 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix typo in comment.

上级 3d25229a
...@@ -352,7 +352,7 @@ class ScalarSoftplus(scalar.UnaryScalarOp): ...@@ -352,7 +352,7 @@ class ScalarSoftplus(scalar.UnaryScalarOp):
# float16 limits: -17.0, 6.0 # float16 limits: -17.0, 6.0
# We use the float32 limits for float16 for now as the # We use the float32 limits for float16 for now as the
# computation will happend in float32 anyway. # computation will happen in float32 anyway.
if (node.inputs[0].type == scalar.float32 or if (node.inputs[0].type == scalar.float32 or
node.inputs[0].type == scalar.float16): node.inputs[0].type == scalar.float16):
return """%(z)s = %(x)s < -103.0f ? 0.0 : %(x)s > 14.0f ? %(x)s : log1p(exp(%(x)s));""" % locals() return """%(z)s = %(x)s < -103.0f ? 0.0 : %(x)s > 14.0f ? %(x)s : log1p(exp(%(x)s));""" % locals()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论