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