Skip to content

Instantly share code, notes, and snippets.

@kaniblu
Created August 20, 2020 11:10
Show Gist options
  • Save kaniblu/9876d5a266d1fb66cb72d794e78bae93 to your computer and use it in GitHub Desktop.
Save kaniblu/9876d5a266d1fb66cb72d794e78bae93 to your computer and use it in GitHub Desktop.
torch.einsum("blm,mn->bln", torch.randn(3, 4, 5), torch.randn(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