Hi,
I got an old code using BatchNorm1d in a MLP network (probably a modification from CNN code). And when I update the pytorch version to 0.3.0, it gives me the following error:

ValueError: Expected more than 1 value per channel when training, got input size [1L, 100L]

which I guess is because in MLP, there is only one channel for each layer and the new BatchNorm1d does not allow such case.
To reproduce this error, you can just generate a 1d vector and feed it to the BatchNorm1d function, for example

m = nn.BatchNorm1d(100)
input = autograd.Variable(torch.randn(1, 100))
output = m(input)

Training the original model took several weeks and there’s a lot of work to do if I have to reconstruct the network.
Can anyone enlighten me with a workaround for this issue?
Thanks!