Skip to content

Instantly share code, notes, and snippets.

@ohmeow
Created March 8, 2019 01:01
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohmeow/fe91aed6267cd779946ab9f10eccdab9 to your computer and use it in GitHub Desktop.
Save ohmeow/fe91aed6267cd779946ab9f10eccdab9 to your computer and use it in GitHub Desktop.
How to prepare datasets/dataloaders for seq2seq models using the fast.ai DataBlock API
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@akhavr
Copy link

akhavr commented Mar 8, 2019

if backwards: res = res.flip(1)

res here is used only once. Are you sure about this line?

@ohmeow
Copy link
Author

ohmeow commented Mar 8, 2019

That is just copied over from the framework code ... not sure how necessary it is here.

@bfarzin
Copy link

bfarzin commented May 23, 2019

This was very helpful. Thanks for posting it!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment