changeset 222:f6a7eb1b7970

redo what James had done, so invert node and name
author Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca>
date Fri, 23 May 2008 14:16:54 -0400
parents 58e17421c69c
children 517364d48ae0
files nnet_ops.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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