Thank you for your replay, I opened an issue on Github:

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      Unknown builtin op: aten::bool 1
    

    
      
        opened 
        
          
        
        Dec 3, 2019
      
      


      
        
          
          Arctanxy
        
      
    
  



  🐛 Bug
tensor.bool() doesn't work in torch.jit.script：
Code sample to reproduce this error:
class net(torch.nn.Module):
 def __init__(self):
 super(net,self).__init__()
 def forward(self,x):
 return x.bool()
model = net()
ts...