MCPcopy Create free account
hub / github.com/LMCache/LMCache / encode_one

Function encode_one

lmcache/python_ops_fallback.py:2235–2242  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

2233 out_len_np = np.zeros(output_lengths.shape, dtype=np.int32)
2234
2235 def encode_one(args):
2236 layer_idx, c = args
2237 length = _encode_single_channel(
2238 cdf_np[layer_idx, c],
2239 sym_np[layer_idx, :, c],
2240 out_buf_np[layer_idx, c],
2241 )
2242 out_len_np[layer_idx, c] = length
2243
2244 tasks = [(layer_idx, c) for layer_idx in range(n_layers) for c in range(n_channels)]
2245

Callers

nothing calls this directly

Calls 1

_encode_single_channelFunction · 0.85

Tested by

no test coverage detected