diff dataset.py @ 196:bda6d89d0b3d

the function should take the example unpacked as an input.
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Tue, 13 May 2008 15:27:45 -0400
parents 895b4b60f5e8
children 96d891448107
line wrap: on
line diff
--- 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)