콘텐츠로 이동

CoreId

class CoreId

Represents a unique identifier for an NPU core.

A CoreId consists of a Cluster and a Core, identifying a specific core within an NPU.

Attributes

Name Description
cluster
core

cluster

property cluster: Cluster

core

property core: Core

Methods

Name Description
__init__
from_cpp
__eq__ Checks if two CoreId objects are equal.
__lt__ Compares two CoreId objects for ordering.
__repr__

__init__

def __init__(self, cluster: Cluster, core: Core)

from_cpp

def from_cpp(cls, _core_id: _cQbRuntime.CoreId)

__eq__

def __eq__(self, other) -> bool

Checks if two CoreId objects are equal.

Returns

True if both CoreId objects are identical, False otherwise.

__lt__

def __lt__(self, other) -> bool

Compares two CoreId objects for ordering.

Returns

True if this CoreId is less than the given CoreId, False otherwise.

__repr__

def __repr__(self)