Python API Reference

Python API Reference#

SDK qb Runtime Library: Python API Reference
SDK qb Runtime Library v0.28
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.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

Functions

bool maccel.model._is_valid_shape (_Shape input_shape, _Shape shape)
bool maccel.model._is_shape_hwc (List[np.ndarray] inputs, List[_Shape] shapes)
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 23 of file model.py.

◆ _is_shape_hwc()

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

Definition at line 37 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 56 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 70 of file model.py.

◆ load()

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

Definition at line 313 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 527 of file type.py.

◆ stop_tracing_events()

maccel.type.stop_tracing_events ( )

Definition at line 531 of file type.py.