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

Method get_name

gguf-py/gguf/tensor_mapping.py:250–254  ·  view source on GitHub ↗
(self, key: str, try_suffixes: Sequence[str] = ())

Source from the content-addressed store, hash-verified

248 return None
249
250 def get_name(self, key: str, try_suffixes: Sequence[str] = ()) -> str | None:
251 result = self.get_type_and_name(key, try_suffixes = try_suffixes)
252 if result is None:
253 return None
254 return result[1]
255
256 def get_type(self, key: str, try_suffixes: Sequence[str] = ()) -> MODEL_TENSOR | None:
257 result = self.get_type_and_name(key, try_suffixes = try_suffixes)

Callers 2

_translate_tensor_keyMethod · 0.45
ggml_backend_nameFunction · 0.45

Calls 1

get_type_and_nameMethod · 0.95

Tested by

no test coverage detected