Skip to content

inspect_utils

torch_to_nnef.remodeler.inspect_utils

group_by_subnet

group_by_subnet(snapshots: T.List[SubnetSignature]) -> dict[str, list[SubnetSignature]]

Group signature snapshots by subnet name preserving order.

group_consecutive

group_consecutive(entries: list[SubnetSignature]) -> list[tuple[list[Stage], SubnetSignature]]

Group consecutive entries with identical IO signatures.

render_diffs_plain

render_diffs_plain(groups: list[tuple[list[Stage], SubnetSignature]]) -> list[str]

Render diffs between successive unique signature groups.

render_groups_plain

render_groups_plain(subnet_name: str, groups: list[tuple[list[Stage], SubnetSignature]]) -> list[str]

Render grouped signatures for one subnet into plain-text lines.