Python API Reference

Python API Reference#

SDK qb Runtime Library: Python API Reference
SDK qb Runtime Library v0.29
MCS001-KR
Python API Reference

Python API provides wrapper functions for C++ implemented library. More...

Classes

class  maccel.accelerator.Accelerator
class  maccel.future.Future
class  maccel.model.Model
class  maccel.model_variant_handle.ModelVariantHandle
class  maccel.type.Cluster
class  maccel.type.Core
class  maccel.type.CoreAllocationPolicy
class  maccel.type.LatencySetPolicy
class  maccel.type.MaintenancePolicy
class  maccel.type.SchedulePolicy
class  maccel.type.Scale
class  maccel.type.CoreId
class  maccel.type.Buffer
class  maccel.type.CoreMode
class  maccel.type.BufferInfo
class  maccel.type.ModelConfig
class  maccel.type.LogLevel
class  maccel.type.CacheType
class  maccel.type.CacheInfo

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)
 maccel.type.set_log_level (LogLevel level)
bool maccel.type.start_tracing_events (str path)
 maccel.type.stop_tracing_events ()

Detailed Description

Python API provides wrapper functions for C++ implemented library.

Function Documentation

◆ _is_valid_shape()

bool maccel.model._is_valid_shape ( _Shape input_shape,
_Shape shape )
protected

Definition at line 24 of file model.py.

◆ _is_shape_hwc()

Optional[bool] maccel.model._is_shape_hwc ( List[np.ndarray] inputs,
List[_Shape] shapes )
protected

Definition at line 38 of file model.py.

◆ _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

Definition at line 56 of file model.py.

◆ _build_outputs()

List[np.ndarray] maccel.model._build_outputs ( List[_Shape] shapes,
bool is_hwc,
np.dtype dtype )
protected

Definition at line 76 of file model.py.

◆ _check_output_shapes()

None maccel.model._check_output_shapes ( List[np.ndarray] outputs,
List[_Shape] shapes,
bool is_hwc,
np.dtype dtype )
protected

Definition at line 90 of file model.py.

◆ load()

Model maccel.model.load ( str path,
Optional[ModelConfig] model_config = None )

Definition at line 353 of file model.py.

◆ set_log_level()

maccel.type.set_log_level ( LogLevel level)

Definition at line 523 of file type.py.

◆ start_tracing_events()

bool maccel.type.start_tracing_events ( str path)

Definition at line 600 of file type.py.

◆ stop_tracing_events()

maccel.type.stop_tracing_events ( )

Definition at line 604 of file type.py.