Last active
April 3, 2017 11:46
-
-
Save scientist1642/2396c21bd4005ea66b4ba618a492c5aa to your computer and use it in GitHub Desktop.
Numpy api analog in Pytorch tensor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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