Home > Back-end >  IndexError: too many indices for tensor of dimension 1 (RMB 10)
IndexError: too many indices for tensor of dimension 1 (RMB 10)

Time:12-06

Resolve to 10 RMB, any way is ok, python questions as follows:

CodePudding user response:

Reading wrong masks is one-dimensional, you seem to use the 2 d index,
Try masks [: lengthsmax]

CodePudding user response:

Not ah, I run or an error, please have a look at, thank you

CodePudding user response:

[: masks, lengthsmax]
Try this
  • Related