Skip to content

Instantly share code, notes, and snippets.

@scientist1642
Last active April 3, 2017 11:46
Show Gist options
  • Save scientist1642/2396c21bd4005ea66b4ba618a492c5aa to your computer and use it in GitHub Desktop.
Save scientist1642/2396c21bd4005ea66b4ba618a492c5aa to your computer and use it in GitHub Desktop.
Numpy api analog in Pytorch tensor
numpy -> pytorch
___
* `t.shape | t.size()`
* `numpy.expand_dims(dim) | unsqueeze(dim)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment