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)