(self)
| 766 | self.dropout = torch.nn.Dropout(0.1) |
| 767 | |
| 768 | def get_input_embeddings(self): |
| 769 | return self.embedding.word_embeddings |
| 770 | |
| 771 | def get_prompt(self, batch_size, device, dtype=torch.half): |
| 772 | prefix_tokens = self.prefix_tokens.unsqueeze(0).expand(batch_size, -1).to(device) |
nothing calls this directly
no outgoing calls
no test coverage detected