Mercurial > pylearn
changeset 217:44dd9b6448c5
harmless typo in ScalarSoftplus.c_code
author | James Bergstra <bergstrj@iro.umontreal.ca> |
---|---|
date | Thu, 22 May 2008 19:08:46 -0400 |
parents | 4b7e89b75e2b |
children | df3fae88ab46 2be51c13b55f |
files | nnet_ops.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nnet_ops.py Thu May 22 19:07:51 2008 -0400 +++ b/nnet_ops.py Thu May 22 19:08:46 2008 -0400 @@ -44,7 +44,7 @@ return ScalarSoftplus.static_impl(x) def grad(self, (x,), (gz,)): return [gz * scalar_sigmoid(x)] - def c_code(self, name, node, (x,), (z,), sub): + def c_code(self, node, name, (x,), (z,), sub): if node.inputs[0].type in [scalar.float32, scalar.float64]: return """%(z)s = %(x)s < -30.0