torch.Tensor.unfold torch.Tensor.unfold — PyTorch 1.12 documentation torch.Tensor.unfold Tensor. unfold ( dimension , size , step ) → Tensor Returns a view of the original tensor which contains all slices of size size from self tensor in the dimension dimension . Step between two slices is given by step .
If sizedim is the size of dimension dimension for self , the s... pytorch.org 이게 문서를 읽어보니깐 slice라고 표현하는 부분이 필자가 보기에는 시퀸스 데이터 다룰 때 sliding window와 매우 유사해 보여서 (그냥 똑같아 보였음) 그냥 필자가 보기 편하게 slice를 wi...
원문 링크 : (pytorch) torch.Tensor.unfold