You could pad your volume with F.pad. I am not familiar with the seismic data, so you would have to see the padding value and make sure it represents the background. For example in image segmentation I always pad with zeros giving it a thick black boundary which can be considered as the background.
You could read about F.pad here-  torch.nn.functional — PyTorch 1.8.1 documentation