Machine Learning, Sentiment Analysis, Vertex AI, Programming, Bert.
inputs["token_type_ids"] mask = inputs["attention_mask"] x = { 'ids': torch.tensor(ids, dtype=torch.long).to(DEVICE), 'mask': torch.tensor(mask, dtype=torch.long).to(DEVICE), 'token_type_ids': torch.tensor(token_type_ids, dtype=torch.long).to(DEVICE) } y = torch.tensor(y,