TypeError: CudaBCECriterion_updateOutput received an invalid combination 
of arguments - got (int, torch.cuda.FloatTensor, torch.cuda.FloatTensor, 
torch.cuda.FloatTensor, bool, !Variable!), but expected (int state, 
torch.cuda.FloatTensor input, torch.cuda.FloatTensor target, 
torch.cuda.FloatTensor output, bool sizeAverage, 
[torch.cuda.FloatTensor weights or None])

does this mean that we can not backprop through weights, or I am doing something wrong?