gradient of norm at 0 is inf.
We fixed this instability 2 days ago in the master branch, so that for norm, the subgradient is used instead.

  
      github.com/pytorch/pytorch
  
  
      
    
  


  Norm subgradient at 0 26



  by albanD
  on 12:19PM - 18 Sep 17



  3 commits
  changed 2 files
  with 28 additions
  and 26 deletions.


  
  
    
    
  
  


It’ll be part of the next release, or if you are interested you can install the master branch from source via instructions: https://github.com/pytorch/pytorch#from-source 21