Solved by KFrank in post #2 
              
              
                Hi Anton! 

You are probably passing target values that are greater than one into 
your MultiLabelSoftMarginLoss loss criterion. 

min_max is read in from some unspecified data file, and then used as 
the target for MultiLabelSoftMarginLoss, which expects its target 
to consist of values that are ei…