Created
October 11, 2019 17:44
-
-
Save vaibkumr/ed0eb37189e56b8403d37b08c5a84280 to your computer and use it in GitHub Desktop.
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
import torch | |
# Binary operator on named tensors | |
t1 = torch.randn(4, names=('X')) | |
t2 = torch.randn(4) | |
t3 = t1 * t2 | |
t3.names #output: ('X',) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment