OutOfMemoryError: CUDA out of memory. Tried to allocate 29.78 GiB. GPU 0 has a total capacity of 22.00 GiB of which 3.81 GiB is free. Of the allocated memory 16.55 GiB is allocated by PyTorch, and 427.59 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/ ... vironment-variables) 怎么解决?