Sorry for the mistake! I’ve edited my recent reply and included another example here.
loss = torch.nn.MSELoss(output, target)
The above statement returns a high loss value. For instance the loss is 169.3941 for the following input tensors:
output = [13.7210,  1.6992, -0.1286, -0.9545, -0.9148,  2.3547], and target = [ 0.,  0.,  0.,  0., 14.,  1.])
How may I get a non-negative integer output from the network?