(self, schemas, eval_foreign_key_maps, db_path)
| 177 | @registry.register('dataset_infer', 'spider') |
| 178 | class SpiderDatasetInfer(torch.utils.data.Dataset): |
| 179 | def __init__(self, schemas, eval_foreign_key_maps, db_path): |
| 180 | self.db_path = db_path |
| 181 | self.examples = [] |
| 182 | self.schemas, self.eval_foreign_key_maps = schemas, eval_foreign_key_maps |
| 183 | |
| 184 | def __len__(self): |
| 185 | return len(self.examples) |
nothing calls this directly
no outgoing calls
no test coverage detected