question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fail to mask adj using 'mul'

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rusty1scommented, Jun 4, 2021

You can use mul_nnz as well 😃

0reactions
aries-Mcommented, Dec 2, 2021

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?

Yes, this issue is resolved.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found