79782909

Date: 2025-10-05 10:06:39
Score: 1
Natty:
Report link

I will mention this as probably an obvious answer. If you are importing torch already, you can just make your own copy of this function using the original function as a template and calling torch.topk and torch.cumsum the way the original function did.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Developer