79383640

Date: 2025-01-24 08:18:04
Score: 1
Natty:
Report link

According to PyTorch's implementation, you cannot directly call linears[ind] when ind is neither an int nor a slice.

What you can do instead is:

out = input
for idx in ind:
    out = linears[idx](out)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: quickfakename