raiseTypeError(f'All input tensors need to be on the same GPU, but found some tensors to not be on a GPU:\n{[(t.shape,t.device)fortintensors]}')
iflen(gpu_ids)>1:
iflen(gpu_ids)>1:
raiseTypeError(f'Input tensors need to be on the same GPU, but found the following tensor and device combinations:{[(t.shape,t.device)fortintensors]}')
raiseTypeError(f'Input tensors need to be on the same GPU, but found the following tensor and device combinations:\n{[(t.shape,t.device)fortintensors]}')