
tensor
Mooney安
路过的一只小白菜
展开
-
报错indexerror: tensors used as indices must be long, byte or bool tensors
报错Traceback (most recent call last): File "main.py", line 306, in <module> args_config=args_config, File "main.py", line 224, in train avg_reward, File "main.py", line 56, in train_one_epoch selected_neg_items_list, _ = sampler(bat原创 2020-10-24 11:29:39 · 14386 阅读 · 6 评论 -
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is Fal
跑pytorch时,出现如下错误:Traceback (most recent call last): File "main.py", line 306, in <module> args_config=args_config, File "main.py", line 184, in train paras = torch.load(args_config.data_path + args_config.model_path) File "/home/zzy/an原创 2020-10-24 09:17:22 · 2110 阅读 · 0 评论