Python API provides wrapper functions for C++ implemented library.
More...
|
| 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) |
| | maccel.type.set_log_level (LogLevel level) |
| bool | maccel.type.start_tracing_events (str path) |
| | maccel.type.stop_tracing_events () |
Python API provides wrapper functions for C++ implemented library.
◆ _is_valid_shape()
| bool maccel.model._is_valid_shape |
( |
_Shape | input_shape, |
|
|
_Shape | shape ) |
|
protected |
◆ _is_shape_hwc()
| Optional[bool] maccel.model._is_shape_hwc |
( |
List[np.ndarray] | inputs, |
|
|
List[_Shape] | shapes ) |
|
protected |
◆ _find_matching_variant_idx_and_is_hwc()
| Tuple[int, bool] maccel.model._find_matching_variant_idx_and_is_hwc |
( |
| model, |
|
|
List[np.ndarray]
| inputs ) |
|
protected |
◆ _build_outputs()
| List[np.ndarray] maccel.model._build_outputs |
( |
List[_Shape] | shapes, |
|
|
bool | is_hwc, |
|
|
np.dtype
| dtype ) |
|
protected |
◆ _check_output_shapes()
| None maccel.model._check_output_shapes |
( |
List[np.ndarray] | outputs, |
|
|
List[_Shape] | shapes, |
|
|
bool | is_hwc, |
|
|
np.dtype
| dtype ) |
|
protected |
◆ load()
◆ set_log_level()
| maccel.type.set_log_level |
( |
LogLevel | level | ) |
|
◆ start_tracing_events()
| bool maccel.type.start_tracing_events |
( |
str | path | ) |
|
◆ stop_tracing_events()
| maccel.type.stop_tracing_events |
( |
| ) |
|