Skip to content

Instantly share code, notes, and snippets.

@kaniblu
Created August 20, 2020 10:47
Show Gist options
  • Save kaniblu/4682da964aee71e720f4cfd877394a58 to your computer and use it in GitHub Desktop.
Save kaniblu/4682da964aee71e720f4cfd877394a58 to your computer and use it in GitHub Desktop.
import torch
(torch.randn(3, 4, 5).bmm(torch.randn(3, 5, 6))).size() # torch.Size([3, 4, 6])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment