Solved by HaziqRazali in post #3 
              
              
                Anyway if you artificially enlarge the number that dataset. len  returns you will be able to. 

Thank you. That give me an idea to simply take the modulo of dataset.len, allowing me to set a batch size larger then the size of the dataset. I still needed to set __len__ to return a larger number, eit…