赞
踩
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)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。