# HG changeset patch # User James Bergstra # Date 1271342986 14400 # Node ID 37ed715ac0348440adbe886c89119c3557e50640 # Parent 08b37147dec125e3068252bd17ef7cf1b7651c03 removed shape argument from tensor constructor diff -r 08b37147dec1 -r 37ed715ac034 pylearn/dataset_ops/protocol.py --- a/pylearn/dataset_ops/protocol.py Fri Mar 12 01:50:52 2010 -0500 +++ b/pylearn/dataset_ops/protocol.py Thu Apr 15 10:49:46 2010 -0400 @@ -50,12 +50,12 @@ single_broadcastable = tuple(single_broadcastable) single_type = theano.tensor.Tensor( broadcastable=single_broadcastable, - dtype=dtype, - shape=single_shape) + dtype=dtype) + #shape=single_shape) batch_type = theano.tensor.Tensor( broadcastable=(False,)+single_type.broadcastable, - dtype=dtype, - shape=(batch_size,)+single_type.shape) + dtype=dtype) + #shape=(batch_size,)+single_type.shape) super(TensorDataset, self).__init__(single_type, batch_type) class TensorFnDataset(TensorDataset):