yolov7报错 indices should be either on cpu or on the same device as the indexed tensor (cpu)解决
问题报错信息Traceback(mostrecentcalllast):File"/usr/local/code/yolov7_pytroch/yolov7/train.py",line616,intrain(hyp,opt,device,tb_writer)File"/usr/local/code/yolov7_pytroch/yolov7/train.py",line363,intrainlo