EDIT :
I created a dataset class that alternatively returns data elements from two different datasets I have. the return type of __getitem__ function is tuple of numpy arrays
When I use a batch size 2 and it stacks the two outputs along the 0th dimension (batch dimension) I get the following error.
RuntimeError: Expected a Tensor of type torch.FloatTensor but found a type torch.DoubleTensor for sequence element 1 in sequence argument at position #1 'tensors'

This doesnt make sense as I used only numpy arrays, so FloatTensor and DoubleTensor is probably something the dataloader does and I am not sure why I am getting the error