Skip to content

Instantly share code, notes, and snippets.

@charlieoneill11
Created January 11, 2022 00:24
Show Gist options
  • Save charlieoneill11/a5f27cf87be574e8535de93c17cdf665 to your computer and use it in GitHub Desktop.
Save charlieoneill11/a5f27cf87be574e8535de93c17cdf665 to your computer and use it in GitHub Desktop.
a = torch.from_numpy(y[3:, :-1])
b = a.split(1, dim=1)
b[0].shape
>>> torch.Size([97, 1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment