79577836

Date: 2025-04-16 18:07:29
Score: 0.5
Natty:
Report link

You can also use torch.tolist()


>>> a = torch.zeros([2,4])
>>> a
tensor([[0., 0., 0., 0.],
        [0., 0., 0., 0.]])
>>> a = a.tolist()
[[0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0]]

And index from there

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