Skip to content

Instantly share code, notes, and snippets.

@charlieoneill11
Created January 11, 2022 00:25
Show Gist options
  • Save charlieoneill11/5be8ecbb24f7516a31eeb16f5f04117b to your computer and use it in GitHub Desktop.
Save charlieoneill11/5be8ecbb24f7516a31eeb16f5f04117b to your computer and use it in GitHub Desktop.
# y = (100, 1000)
train_input = torch.from_numpy(y[3:, :-1]) # (97, 999)
train_target = torch.from_numpy(y[3:, 1:]) # (97, 999)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment