@MoriartyShan
The issue was with this line
print('a', x1)

If you convert this to
print('a', x1.detach().numpy())

I am not sure why this is happening. We need to get to the bottom of this. But printing of tensors within multiprocessing function caused your issue