seems there are many related posts. I collected a list to have them all accessible in one place:

How to create batches of a list of varying dimension tensors?
How to create a dataloader with variable-size input 205
Using variable sized input - Is padding required? 69
DataLoader for various length of data 109
How to do padding based on lengths? 35

bucketing:

Tensorflow-esque bucket by sequence length 14


Stack-overflow question:

  
      stackoverflow.com
  
  
      
    
  

  How does Pytorch Dataloader handle variable size data? 151



  python, pytorch, tensor, variable-length



  asked by
  
  
    Trung Le
  
  on 10:08AM - 07 Mar 19 UTC


  
  
    
    
  
  



crossposted: https://www.quora.com/unanswered/How-does-Pytorch-Dataloader-handle-variable-size-data 33