fail to mask adj using 'mul'
See original GitHub issueI have got an adjacency name ‘adj’ which is a SparseTensor, I would like to mask the value in ‘adj’ using ‘mask’, which is a torch.Tensor, I try this:
from torch_sparse import mul
...
new_adj = mul(adj, mask)
but it throw ’ ValueError: Size mismatch: Expected size (251, 1, …) or (1, 251, …), but got size torch.Size([251, 251]).’ How could I mask an adjacency matrix when it is a SparseTensor.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
COMMENTARY: What can masks do? Part 2: What makes for ...
Part 2: What makes for a good mask study — and why most fail ... are the importance of vaccination and the use...
Read more >Correlation Between N95 Extended Use and Reuse and Fit ...
Among wearers of dome-shaped masks, fit test failure was associated with ... Impact of multiple consecutive donnings on filtering facepiece respirator fit.
Read more >Comparing the fit of N95, KN95, surgical, and cloth face masks ...
Quantitative fit testing with the PortaCount 8038+ has a fit factor error range of +/- 10% of reading. While quantitative fit testing is...
Read more >Make local adjustments in Camera Raw - Adobe Support
Camera Raw opens the Adjustment Brush tool options under the Histogram and sets the mask mode to New. Choose the type of adjustment...
Read more >mask - CSS: Cascading Style Sheets - MDN Web Docs
It is therefore recommended to use the mask shorthand rather than other ... mask: unset; /* Multiple masks */ mask: url(masks.svg#star) left ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can use
mul_nnz
as well 😃Yes, this issue is resolved.