Thanks for your help! I was able to write a custom Dataset object that worked for me.
I just needed to understand that Dataset’s job is to return a single training example, and how the target for that example is returned by Dataset.