# CoreId

```python
class CoreId
```

Represents a unique identifier for an NPU core.

A [CoreId](<https://docs.mobilint.com/runtime/en/v1.6/api/python/CoreId/index.md>) consists of a [Cluster](<https://docs.mobilint.com/runtime/en/v1.6/api/python/Cluster/index.md>) and a [Core](<https://docs.mobilint.com/runtime/en/v1.6/api/python/Core/index.md>), identifying a specific core within an NPU.

## Attributes

| Name | Description |
| --- | --- |
| [`cluster`](<#cluster>) |  |
| [`core`](<#core>) |  |

### cluster

```python
property cluster: Cluster
```

### core

```python
property core: Core
```

## Methods

| Name | Description |
| --- | --- |
| [`__init__`](<#init>) |  |
| [`from_cpp`](<#from-cpp>) |  |
| [`__eq__`](<#eq>) | Checks if two [CoreId](<https://docs.mobilint.com/runtime/en/v1.6/api/python/CoreId/index.md>) objects are equal. |
| [`__lt__`](<#lt>) | Compares two [CoreId](<https://docs.mobilint.com/runtime/en/v1.6/api/python/CoreId/index.md>) objects for ordering. |
| [`__repr__`](<#repr>) |  |

### \_\_init\_\_

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

### from\_cpp

```python
def from_cpp(cls, _core_id: _cQbRuntime.CoreId)
```

### \_\_eq\_\_

```python
def __eq__(self, other) -> bool
```

Checks if two [CoreId](<https://docs.mobilint.com/runtime/en/v1.6/api/python/CoreId/index.md>) objects are equal.

**Returns**

True if both [CoreId](<https://docs.mobilint.com/runtime/en/v1.6/api/python/CoreId/index.md>) objects are identical, False otherwise.

### \_\_lt\_\_

```python
def __lt__(self, other) -> bool
```

Compares two [CoreId](<https://docs.mobilint.com/runtime/en/v1.6/api/python/CoreId/index.md>) objects for ordering.

**Returns**

True if this [CoreId](<https://docs.mobilint.com/runtime/en/v1.6/api/python/CoreId/index.md>) is less than the given [CoreId](<https://docs.mobilint.com/runtime/en/v1.6/api/python/CoreId/index.md>), False otherwise.

### \_\_repr\_\_

```python
def __repr__(self)
```
