1. 问题描述 在利用PyTorch报错: RuntimeError: Expected object of backend CPU but got backend CUDA for argument #2 'other' 报错时,对应Python语句的写法为: update_scale = torch.max(scale.round(), torch.Tensor([2])<