3种可能性: 模型本身没有在device上 : model.to(device)有数据在cpu上:a.cuda()nn.network没有self定义,本身在cpu上:self.network=nn.network() (没有遇到过)