github.com/pytorch/pytorch
  
  
    



Issue: [jit] be more permissive with bool casting. 9


	
	opened by suo
	on 2019-03-23
	
	
	


In the TorchScript docs there is an example that doesn't compile:
import torch
@torch.jit.script
def foo(x, y):
 if x.max() > y.max():
 r = x
...


 	jit