BCELoss is built on top of sigmoid layer, which is numerically unstable.(by yzgao)
So, it is necessary to add similar loss modules to address this numerical stability issue. (by yzgao)

  
      github.com/pytorch/pytorch
  
  
    



Issue: Feature Request: Add BCELossWithLogits to replace BCELoss for numerical stability. 248


	
	opened by yzgao
	on 2017-02-15
	
	
	closed by soumith
	on 2017-07-04
	


Hi,
I recently switched my codebase from tensorflow to pytorch. After watching the tutorials as well as some example projects, I felt...


 	1hr
 	bug
 	medium priority


  
  
    
    
  
  



  
      github.com/pytorch/pytorch
  
  
      
    
  


  Add numerically stable BCELoss which takes logits as input 144



  by alykhantejani
  on 05:16PM - 13 Jun 17



  17 commits
  changed 6 files
  with 92 additions
  and 8 deletions.