判断model在cuda上 Posted on 2018-12-Thu Views: Views: 1next(model.parameters()).is_cuda # returns a boolean