(self, model_path, max_length)
| 136 | |
| 137 | class Encoder: |
| 138 | def __init__(self, model_path, max_length): |
| 139 | self.max_length = max_length |
| 140 | self.tokenizer, self.model = load_model(model_path=model_path) |
| 141 | self.model.eval() |
| 142 | |
| 143 | @torch.no_grad() |
| 144 | def encode(self, query_list: List[str]): |
nothing calls this directly
no test coverage detected