79554508

Date: 2025-04-04 05:18:53
Score: 0.5
Natty:
Report link

I got this error from the minimal example

a = torch.tensor(4.0)
a.unsqueeze(1)

So I assume the problem is trying to unsqueeze a scalar, which has dimension 0 . As the error suggests, the dimension is maxed at zero.

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