of bounds"failed. /opt/conda/conda-bld/pytorch_1627336325426/work/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [99,0,0], thread: [60,0,0] Assertionidx_dim >= 0 && idx_dim < index_size && "index out of bounds"failed. /opt/conda/conda-bld/pytorch_1627336325426/work/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [99,0,0], thread: [61,0,0] Assertionidx_dim >= 0 && idx_dim < index_size && "index out of bounds"failed. /opt/conda/conda-bld/pytorch_1627336325426/work/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [99,0,0], thread: [62,0,0] Assertionidx_dim >= 0 && idx_dim < index_size && "index out of bounds"failed. /opt/conda/conda-bld/pytorch_1627336325426/work/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [99,0,0], thread: [63,0,0] Assertionidx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed.
Traceback (most recent call last):
File "main_um_stereo_epoch7_4f_uncertain.py", line 659, in
main(args)
File "main_um_stereo_epoch7_4f_uncertain.py", line 451, in main
curr_uncertain_loss = criterion_uncertainty(disp_up.squeeze(1), gamma_up.squeeze(1),
File "/home/huanglu/stereoMatch/unimatch-master/unimatch/utils.py", line 54, in criterion_uncertainty
(0.5 * torch.log(np.pi / (la + epsilon)) -
RuntimeError: CUDA error: device-side assert triggered
这个错误怎么解决
of bounds"
failed. /opt/conda/conda-bld/pytorch_1627336325426/work/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [99,0,0], thread: [60,0,0] Assertionidx_dim >= 0 && idx_dim < index_size && "index out of bounds"failed. /opt/conda/conda-bld/pytorch_1627336325426/work/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [99,0,0], thread: [61,0,0] Assertionidx_dim >= 0 && idx_dim < index_size && "index out of bounds"failed. /opt/conda/conda-bld/pytorch_1627336325426/work/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [99,0,0], thread: [62,0,0] Assertionidx_dim >= 0 && idx_dim < index_size && "index out of bounds"failed. /opt/conda/conda-bld/pytorch_1627336325426/work/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [99,0,0], thread: [63,0,0] Assertionidx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed.Traceback (most recent call last):
File "main_um_stereo_epoch7_4f_uncertain.py", line 659, in
main(args)
File "main_um_stereo_epoch7_4f_uncertain.py", line 451, in main
curr_uncertain_loss = criterion_uncertainty(disp_up.squeeze(1), gamma_up.squeeze(1),
File "/home/huanglu/stereoMatch/unimatch-master/unimatch/utils.py", line 54, in criterion_uncertainty
(0.5 * torch.log(np.pi / (la + epsilon)) -
RuntimeError: CUDA error: device-side assert triggered
这个错误怎么解决