# helia_edge.utils.sampling

Generator scheduling policies, independent of training frameworks.

## helia_edge.utils.sampling.StreamMode

`class` · `python`

```python
StreamMode()
```

Select how sample identifiers are scheduled across generator partitions.

Source: `helia_edge/utils/sampling.py:6`

### helia_edge.utils.sampling.StreamMode.GLOBAL

`constant` · `python`

```python
GLOBAL = 'global'
```

Use a caller-owned schedule, including repeated or weighted
identifiers, without partitioning by worker count.

Source: `helia_edge/utils/sampling.py:16`

### helia_edge.utils.sampling.StreamMode.FINITE

`constant` · `python`

```python
FINITE = 'finite'
```

Partition a finite identifier sequence into contiguous shards
for terminating generators.

Source: `helia_edge/utils/sampling.py:17`
