TypeError: 'builtin_function_or_method' object does not support item assignment

Traceback (most recent call last):
File "D:/software/AI/mypython/yolov5-5.0/train.py", line 572, in
train(hyp, opt, device, tb_writer)
File "D:/software/AI/mypython/yolov5-5.0/train.py", line 304, in train
loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size
File "D:\software\AI\mypython\yolov5-5.0\utils\loss.py", line 117, in call
tcls, tbox, indices, anchors = self.build_targets(p, targets) # targets
File "D:\software\AI\mypython\yolov5-5.0\utils\loss.py", line 179, in build_targets
gain[2:6] = torch.tensor(p[i].shape)[[3, 2, 3, 2]] # xyxy gain
TypeError: 'builtin_function_or_method' object does not support item assignment
这个问题解决了嘛,那个yolov5训练模型那个

参考 https://github.com/Sharpiless/yolov5-distillation-5.0/issues/13

具体说明一下。