北京网站优化厂家网上手机商城网站建设
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
修改指定为gpu
trainer = pl.Trainer(max_epochs=train_params.iterations, logger=tb_logger,accelerator='gpu', devices=1)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
修改指定为gpu
trainer = pl.Trainer(max_epochs=train_params.iterations, logger=tb_logger,accelerator='gpu', devices=1)