Solved by tom in post #2 
              
              
                The first is clearly a bug and it seems that the autograd test fogets to pass “largest” (pytorch/test_autograd.py at 99c7a9f09d2a89506c661defb61610ddff8859a1 · pytorch/pytorch · GitHub). Your workaround seems legitimate, with torch.tensor(True), you’d get additional beauty points. It would be nice t…