python错误:
运行时错误:计算时间错误replica0on device0.以及
运行时错误: cuda out of memory.triedtoallocate 30.00 MIB (GPU 2; 15.90 gib总容量; 15.08 GiB already allocated; 11.69MIB自由; 15.18 gibreservedintotalbypytorch (经常缺少GPU,可以将当前设置的GPU块数增加几个块(如果有多个GPU ) )。
例如:
parser.add_argument('--gpu_ids ',type=str,default=' 0,5,7 ' )通常,gpu_ids是指示gpu编号的参数,当前为空此处指定的是0