(self, model_path)
| 63 | # TCTColBERT model |
| 64 | class TCTColBERT(nn.Module): |
| 65 | def __init__(self, model_path) -> None: |
| 66 | super(TCTColBERT, self).__init__() |
| 67 | self.model = BertModel.from_pretrained(model_path) |
| 68 | |
| 69 | def forward(self, input_ids, attention_mask, **kwargs): |
| 70 | outputs = self.model(input_ids=input_ids, attention_mask=attention_mask).last_hidden_state |
nothing calls this directly
no test coverage detected