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

Method do_item

convert-dense.py:903–906  ·  view source on GitHub ↗
(item: tuple[str, LazyTensor])

Source from the content-addressed store, hash-verified

901
902 @staticmethod
903 def do_item(item: tuple[str, LazyTensor]) -> tuple[DataType, NDArray]:
904 name, lazy_tensor = item
905 tensor = lazy_tensor.load().to_ggml()
906 return (lazy_tensor.data_type, tensor.ndarray)
907
908 @staticmethod
909 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