Provide default implementation using self.model and user can reimplement it
(self, inputs: Dict[str, Any],
**forward_params)
| 419 | return self.preprocessor(inputs, **preprocess_params) |
| 420 | |
| 421 | def forward(self, inputs: Dict[str, Any], |
| 422 | **forward_params) -> Dict[str, Any]: |
| 423 | """ Provide default implementation using self.model and user can reimplement it |
| 424 | """ |
| 425 | assert self.model is not None, 'forward method should be implemented' |
| 426 | assert not self.has_multiple_models, 'default implementation does not support multiple models in a pipeline.' |
| 427 | return self.model(inputs, **forward_params) |
| 428 | |
| 429 | def postprocess(self, inputs: Dict[str, Any], |
| 430 | **post_params) -> Dict[str, Any]: |
no outgoing calls
no test coverage detected