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.