Hi, I try to allow using PyTables directly into Theano (not with all PyTables options, but for the basic...). If we want to use them together for now, we must handle PyTables in Python and pass ndarray to Theano function.
In Theano we can run in a mode called DebugMode. This mode make extensive check on all optimization done by Theano. It run 100-1000x slower then in normal mode. In this mode, we make deepcopy of all input of a computation before we execute it. If the computation did not say it would modify some of its inputs, we check they did not change. We do this because we need computation to tell theano if it work inplace on the input or not. As we always worked up to now inside Theano with stuff that fit in memory, this was acceptable. With PyTables, we can't accept to do that as it don't fit in memory. So I think it is a good think that deepcopy don't work out of the box. I will only accept for now PyTables that are open in read mode. In that case, I will not copy the PyTables as the computation can't modify it. Later I will try to support PyTables opened in append mode. We can check in that case if the array did not grow. thanks Frédéric Bastien On Thu, Jan 13, 2011 at 4:17 AM, Francesc Alted <fal...@pytables.org> wrote: > A Wednesday 12 January 2011 19:30:40 Frédéric Bastien escrigué: >> >> I'm trying pytables and I hit a problem: the class >> >> tables.earray.EArray don't support deepcopy. >> > >> > It does. Use the `copy()` method: >> > >> > http://www.pytables.org/docs/manual/ch04.html#id340646 >> >> I mean that it don't support the copy.deepcopy method from the copy >> module. > > Hmm, may I ask what you where trying to do by using copy.deepcopy()? > > -- > Francesc Alted > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Pytables-users mailing list > Pytables-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pytables-users > ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users