MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / expect_map

Function expect_map

tools/model_manager.py:1703–1706  ·  view source on GitHub ↗
(value: Any, label: str)

Source from the content-addressed store, hash-verified

1701 state: dict[str, torch.Tensor] = {}
1702 for key, value in raw_state.items():
1703 if not isinstance(key, str):
1704 raise RuntimeError(f"invalid non-string Whisper tensor key: {key!r}")
1705 if not isinstance(value, torch.Tensor):
1706 raise RuntimeError(f"invalid non-tensor Whisper state entry: {key}")
1707 state[key] = value.detach().cpu().contiguous()
1708 return state
1709

Callers 2

map_atFunction · 0.85
jasper_blocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected