ValueError: too many dimensions 'str'

I keep getting this error consistently when I run my code. Have not found anything yet to solve this issue.

Please click on link to see my notebook and the issue.

Any help is great.

Link:

Could you check the type of these inputs to torch.tensor?

torch.tensor(touch_seq),torch.tensor(labels),torch.tensor(lengths),torch.FloatTensor(profile_data)

Based on the error message and stack trace at least one of these tensor creations fails with this rather unhelpful error message.

torch.FloatTensor(200*["*"])
1 Like