qbruntime.type.CoreId Class Reference

qbruntime.type.CoreId Class Reference#

SDK qb Runtime Library: qbruntime.type.CoreId Class Reference
SDK qb Runtime Library v1.2
MCS001-EN

Represents a unique identifier for an NPU core. More...

Public Member Functions

 __init__ (self, Cluster cluster, Core core)
 from_cpp (cls, _cQbRuntime.CoreId _core_id)
Cluster cluster (self)
Core core (self)
 cluster (self, Cluster value)
 core (self, Core value)
bool __eq__ (self, other)
 Checks if two CoreId objects are equal.
bool __lt__ (self, other)
 Compares two CoreId objects for ordering.
 __repr__ (self)

Protected Attributes

 _core_id = _cQbRuntime.CoreId()

Detailed Description

Represents a unique identifier for an NPU core.

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

Definition at line 114 of file type.py.

Constructor & Destructor Documentation

◆ __init__()

qbruntime.type.CoreId.__init__ ( self,
Cluster cluster,
Core core )

Definition at line 122 of file type.py.

Member Function Documentation

◆ from_cpp()

qbruntime.type.CoreId.from_cpp ( cls,
_cQbRuntime.CoreId _core_id )

Definition at line 128 of file type.py.

◆ cluster() [1/2]

Cluster qbruntime.type.CoreId.cluster ( self)

Definition at line 132 of file type.py.

◆ core() [1/2]

Core qbruntime.type.CoreId.core ( self)

Definition at line 136 of file type.py.

◆ cluster() [2/2]

qbruntime.type.CoreId.cluster ( self,
Cluster value )

Definition at line 140 of file type.py.

◆ core() [2/2]

qbruntime.type.CoreId.core ( self,
Core value )

Definition at line 144 of file type.py.

◆ __eq__()

bool qbruntime.type.CoreId.__eq__ ( self,
other )

Checks if two CoreId objects are equal.

Returns
True if both CoreId objects are identical, False otherwise.

Definition at line 147 of file type.py.

◆ __lt__()

bool qbruntime.type.CoreId.__lt__ ( self,
other )

Compares two CoreId objects for ordering.

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

Definition at line 155 of file type.py.

◆ __repr__()

qbruntime.type.CoreId.__repr__ ( self)

Definition at line 163 of file type.py.

Member Data Documentation

◆ _core_id

qbruntime.type.CoreId._core_id = _cQbRuntime.CoreId()
protected

Definition at line 123 of file type.py.


The documentation for this class was generated from the following file: