diff nnet_ops.py @ 121:2ca8dccba270

debugging mlp.py
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Wed, 07 May 2008 16:08:18 -0400
parents 3ef569b92fba
children 1b06bc2c3ca9
line wrap: on
line diff
--- a/nnet_ops.py	Wed May 07 15:46:24 2008 -0400
+++ b/nnet_ops.py	Wed May 07 16:08:18 2008 -0400
@@ -99,10 +99,10 @@
             raise ValueError('x must be 2-d tensor of floats')
         if b.type.ndim != 1 \
                 or x.type.dtype not in ['float32', 'float64']:
-            raise ValueError('x must be 1-d tensor of floats')
+            raise ValueError('b must be 1-d tensor of floats')
         if y_idx.type.ndim != 1 \
                 or y_idx.type.dtype not in ['int32', 'int64']:
-            raise ValueError('x must be 1-d tensor of ints')
+            raise ValueError('y_idx must be 1-d tensor of ints')
 
 #       TODO: Is this correct? It used to be y, not y_idx
         nll = tensor.Tensor(x.type.dtype,