I uploaded the code here 56.
The code except the module above is same as my other examples and they work with GPUs. So I think the cause is in the __res_block.
And, does torch.CudaFloatTensor  equal to torch.cuda.RealTensor?