diff datasets/dsetiter.py @ 180:76bc047df5ee

Add dtype conversion and rescaling to the read path.
author Arnaud Bergeron <abergeron@gmail.com>
date Sat, 27 Feb 2010 16:50:16 -0500
parents defd388aba0c
children 0d0677773533
line wrap: on
line diff
--- a/datasets/dsetiter.py	Sat Feb 27 16:07:09 2010 -0500
+++ b/datasets/dsetiter.py	Sat Feb 27 16:50:16 2010 -0500
@@ -1,4 +1,4 @@
-import numpy, theano
+import numpy
 
 class DummyFile(object):
     def __init__(self, size):
@@ -123,7 +123,7 @@
             tmpbuf = self.curfile.read(self.bufsize - len(buf))
             buf = numpy.row_stack((buf, tmpbuf))
 
-        self.buffer = numpy.asarray(buf, dtype=theano.config.floatX)
+        self.buffer = buf
         self.curpos = 0
 
     def __next__(self):