# HG changeset patch # User Frederic Bastien # Date 1244477654 14400 # Node ID 1e97e7c7f11faf613d72da6115733f0793484312 # Parent d7d8877e03f8c226d7b92a0ccbc57588bc693003 very small opt. diff -r d7d8877e03f8 -r 1e97e7c7f11f pylearn/sandbox/scan_inputs_groups.py --- a/pylearn/sandbox/scan_inputs_groups.py Fri Jun 05 15:27:21 2009 -0400 +++ b/pylearn/sandbox/scan_inputs_groups.py Mon Jun 08 12:14:14 2009 -0400 @@ -311,8 +311,8 @@ raise NotImplementedError('index superior to weight list length',idx_list) if len(idx_list) != len(args[1]) : raise NotImplementedError('size of index different of inputs list size',idx_list) - for i in range(len(args)-4): - if (args[3+i].shape)[0] != n_hid: + for a in args[3:]: + if a.shape[0] != n_hid: raise NotImplementedError('different length of hidden in the weights list',args[3+i].shape) zidx=numpy.zeros((len(idx_list)+1))