model.py File Reference#
|
Runtime Library v0.30
Mobilint SDK qb
|
Go to the source code of this file.
Classes | |
| class | maccel.model.Model |
| Represents an AI model loaded from an MXQ file. More... | |
Functions | |
| bool | maccel.model._is_valid_shape (_Shape input_shape, _Shape shape) |
| Optional[bool] | maccel.model._is_shape_hwc (List[np.ndarray] inputs, List[_Shape] shapes) |
| Tuple[int, bool] | maccel.model._find_matching_variant_idx_and_is_hwc (model, List[np.ndarray] inputs) |
| List[np.ndarray] | maccel.model._build_outputs (List[_Shape] shapes, bool is_hwc, np.dtype dtype) |
| None | maccel.model._check_output_shapes (List[np.ndarray] outputs, List[_Shape] shapes, bool is_hwc, np.dtype dtype) |
| Model | maccel.model.load (str path, Optional[ModelConfig] model_config=None) |
| Single-step inference API. | |
Variables | |
| maccel.model._Shape = Tuple[int, ...] | |
Variable Documentation
◆ _Shape
Generated by