Yes, I had those guards. The error is in compile time. Here is a minimal reproduction of the bug, if it helps.

  
      
      GitHub
  
  
    

BryanWBear/PytorchDev 2

repro a compiler bug. Contribute to BryanWBear/PytorchDev development by creating an account on GitHub.