79586547

Date: 2025-04-22 13:10:57
Score: 1.5
Natty:
Report link

The following should work according to torch.nonzero documentation:

indices = torch.nonzero(cond, as_tuple=True)
x[indices]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user23338870