onnx_diagnostic.helpers.config_helper¶
- onnx_diagnostic.helpers.config_helper.check_hasattr(config: Any, *args: str | Tuple[Any, ...])[source][source]¶
Checks the confiugation has all the attributes in
args
. Raises an exception otherwise.
- onnx_diagnostic.helpers.config_helper.config_class_from_architecture(arch: str, exc: bool = False) type | None [source][source]¶
Retrieves the configuration class for a given architecture.
- Parameters:
arch – architecture (clas name)
exc – raise an exception if not found
- Returns:
type