79713817

Date: 2025-07-24 18:28:10
Score: 1
Natty:
Report link
import torch
ten = torch.Tensor([1, 2, 3, 4, 5, 6)


ten.roll(-1, 0)

The examples in the documentation of .roll() has a scenario just like yours.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aadvik