You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because these two lines of code don't check the length of target and the self.mat will be wrongly updated if target:numel()==1.
Note that feeding ConfusionMatrix with target being a dim 1 tensor of length 1 is possible because of this modification to nn.ClassNLLCriterion. I didn't submit a patch because I'm not sure whether we should support or disallow this kind of size.
The text was updated successfully, but these errors were encountered:
because these two lines of code don't check the length of
target
and theself.mat
will be wrongly updated iftarget:numel()==1
.Note that feeding
ConfusionMatrix
withtarget
being a dim 1 tensor of length 1 is possible because of this modification tonn.ClassNLLCriterion
. I didn't submit a patch because I'm not sure whether we should support or disallow this kind of size.The text was updated successfully, but these errors were encountered: