I am running Pytorch 0.3.1.post2
2015 Macbook Pro— macOS Sierra…
I also tried this approach
inputs = torch.randn(124, 3, 32, 32)
input1 =torch.randn(124, 3, 32, 32)
target1 = targets
for i in range(1,100):
	input1=torch.cat((input1,inputs),0)
print input1