Do you see the same behavior if your do:
c = b.to('cuda:1')
torch.cuda.synchronize(1)
print(c)

?
Could you give more informations about your setup please as well. What is your cuda version. nvidia driver version. pytorch version and how you installed it? Thanks
This might be a missing sync on our side. cc @ngimel