MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / do_item

Method do_item

convert.py:936–939  ·  view source on GitHub ↗
(item: tuple[str, LazyTensor])

Source from the content-addressed store, hash-verified

934
935 @staticmethod
936 def do_item(item: tuple[str, LazyTensor]) -> tuple[DataType, NDArray]:
937 name, lazy_tensor = item
938 tensor = lazy_tensor.load().to_ggml()
939 return (lazy_tensor.data_type, tensor.ndarray)
940
941 @staticmethod
942 def maybe_do_quantize(item: tuple[DataType, NDArray]) -> NDArray:

Callers

nothing calls this directly

Calls 2

to_ggmlMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected