Open cooijmanstim opened 9 years ago
Sorry about the delay! It seems like numpy doesn't like to cast numpy arrays of object
dtype.
I think Cast
could benefit from being more careful about how it operates: lists and numpy array of object
dtype should be cast elementwise instead of being shoehorned into regular numpy arrays.
I'll try to come up with a solution for that.
Running this:
Results in this error:
The problem is that fuel.datasets.SVHN produces ragged batches that are numpy arrays with dtype "object", and its default transformer tries to cast the arrays to floatX. Not sure what the proper solution is.