# HG changeset patch # User Frederic Bastien # Date 1210706865 14400 # Node ID bda6d89d0b3dcac8d54a1c2489f093ae42be3bd4 # Parent 363752267470d1cac78f9c8a1e6b7e7c92a66394 the function should take the example unpacked as an input. diff -r 363752267470 -r bda6d89d0b3d dataset.py --- a/dataset.py Tue May 13 15:12:45 2008 -0400 +++ b/dataset.py Tue May 13 15:27:45 2008 -0400 @@ -1177,7 +1177,7 @@ def next(self): function_inputs = self.input_iterator.next() if self.output_dataset.minibatch_mode: - function_outputs = [output[0] for output in self.output_dataset.function(function_inputs)] + function_outputs = [output[0] for output in self.output_dataset.function(*function_inputs)] else: function_outputs = self.output_dataset.function(function_inputs) return Example(self.output_dataset.output_names,function_outputs)