Just found the related pytorch issue, so I assume its a known bug?

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      torch.quantization.convert() doesn't remove observer from empty Sequential() module, causing error when scripting 9
    

    
      
        opened 
        
          
        
        Oct 21, 2019
      
      


      
        
          
          hx89
        
      
    
  



  🐛 Bug
torch.quantization.convert() doesn't remove observer from empty Sequential() module, causing errors when scripting the model since observers are not scriptable.
Steps to...



    jit
    quantization
    triaged