Solved by KFrank in post #4 
              
              
                Hi James! 

Neither BCEWithLogitsLoss (which you should use), nor BCELoss 
(which you should not use) has a built-in thresholding feature. 
But it’s easy enough to threshold target (the labels) before you pass 
it in: 
my_threshold = 0.65
thresholded_target = (target > my_threshold).float()
loss = t…