None. Someone helped me identify the problem when I opened an issue. Turns out the problem was
self.tensorboard_writer = tensorboard_writer
Apparently, file handles can’t typically serialized.

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      torch.save causes TypeError: can't pickle SwigPyObject objects 192
    

    
      
        opened 
        
          
        
        Jan 10, 2020
      
      

        
          closed 
        
          
        
        Jan 10, 2020
      
        

      
        
          
          RylanSchaeffer
        
      
    
  



  🐛 Bug
I create a simple class that inherits from nn.Module. When I try to save an instance of this class, I...