赞
踩
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument weight in method wrapper_nll_loss_forward)
tensors 一会在CPU运算,一会在GPU运算。
都改成在GPU运算。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。