MCPcopy
hub / github.com/city96/ComfyUI-GGUF / is_quantized

Function is_quantized

dequant.py:12–13  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

10 return tensor is None or getattr(tensor, "tensor_type", None) in TORCH_COMPATIBLE_QTYPES
11
12def is_quantized(tensor):
13 return not is_torch_compatible(tensor)
14
15def dequantize_tensor(tensor, dtype=None, dequant_dtype=None):
16 qtype = getattr(tensor, "tensor_type", None)

Callers 5

gguf_sd_loaderFunction · 0.85
gemma3_norm_correctionsFunction · 0.85
gguf_mmproj_loaderFunction · 0.85
is_ggml_quantizedMethod · 0.85

Calls 1

is_torch_compatibleFunction · 0.85

Tested by

no test coverage detected