# HG changeset patch # User Thierry Bertin-Mahieux # Date 1211566614 14400 # Node ID f6a7eb1b797098cde134fd64c46c9579d21d7299 # Parent 58e17421c69c8aca2b3394a90455132f88a025b6 redo what James had done, so invert node and name diff -r 58e17421c69c -r f6a7eb1b7970 nnet_ops.py --- a/nnet_ops.py Fri May 23 14:07:53 2008 -0400 +++ b/nnet_ops.py Fri May 23 14:16:54 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