torch.int8和torch.uint8都是PyTorch中的数据类型,它们的主要差别在于取值范围不同。 torch.int8表示8位有符号整数,其取值范围为[-128, 127]torch.uint8表示8位无符号整数,其取值范围为[0, 255]