Base model constructor to initialize common attributes. :param config: A dictionary containing model configuration parameters.
(self, config)
| 1 | import torch |
| 2 | class BaseModel(): |
| 3 | def __init__(self, config): |
| 4 | """ |
| 5 | Base model constructor to initialize common attributes. |
| 6 | :param config: A dictionary containing model configuration parameters. |
| 7 | """ |
| 8 | self.config = config |
| 9 | |
| 10 | def predict(self, question, texts = None, images = None, history = None): |
| 11 | pass |
nothing calls this directly
no outgoing calls
no test coverage detected