Created
December 30, 2020 23:52
-
-
Save franckjay/e3944e6acedef8b0c19f5dc9c394b682 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
G = sparse.to_dense().t()@sparse.to_dense() | |
tensor([ | |
[1., 0., 0., 0., 1., 1.], | |
[0., 1., 1., 1., 0., 0.], | |
[0., 1., 1., 1., 0., 0.], | |
[0., 1., 1., 2., 0., 1.], | |
[1., 0., 0., 0., 1., 1.], | |
[1., 0., 0., 1., 1., 2.] | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment