print(max(perm1)) is tensor(7, device=‘cuda:3’)
print(min(perm1)) is  tensor(0, device=‘cuda:3’)
print(max(perm2)) is tensor(4771563806306336768, device=‘cuda:3’)
print(min(perm2)) is tensor(4733283209477357568, device=‘cuda:3’)