They all seem to work for me (after adding the missing ) in the third cpu case).
I’m on a recent master with (0.5.0a0+08daed4) as well. Maybe something with your dependencies and PyTorch being compiled with incompatible compilers? I use Debian’s gcc 5 and it seems to work well.
Best regards
Thomas