unbatch
¶
unbatch(batch: GraphDataBatch) -> list[GraphData]
Reconstructs a list of GraphData objects from a GraphDataBatch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch
|
GraphDataBatch
|
|
required |
Returns:
| Type | Description |
|---|---|
list[GraphData]
|
List of unbatched |
Source code in mlx_graphs/data/batch.py
from mlx_graphs.data.batch import unbatch · mlx_graphs/data/batch.py