compileml.runtime — primitives
band_label
def band_label(latent_int: int, bands: dict) -> tuple[int, str]
from compileml.runtime import band_label
(index, label) for the band containing latent_int.
Parameters#
| Name | Type | Default | Kind |
|---|---|---|---|
| latent_int | int | required | positional |
| bands | dict | required | positional |
Returns#
tuple[int, str]