out.data.max(1)[1].max()  get tensor(1.8296e+16, device='cuda:0')

pytorch version is 0.4.0
the out is the output of deeplabv3+ with GTA5 dataset

out.is_contiguous() is True


out.sparse get AttributeError: 'Tensor' object has no attribute 'sparse'


another problem is  while the out.data.max(1)[1].max() less than 35, error occurs with

THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1524580978845/work/aten/src/THC/generic/THCTensorCopy.c line=70 error=59 : device-side assert triggered
*** RuntimeError: cuda runtime error (59) : device-side assert triggered at /opt/conda/conda-bld/pytorch_1524580978845/work/aten/src/THC/generic/THCTensorCopy.c:70

and the error occurs after the loss = CrossEntropyLoss2d(out, targets)