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

Method to

ops.py:57–62  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

55 return super().__new__(cls, *args, **kwargs)
56
57 def to(self, *args, **kwargs):
58 new = super().to(*args, **kwargs)
59 new.tensor_type = getattr(self, "tensor_type", None)
60 new.tensor_shape = getattr(self, "tensor_shape", new.data.shape)
61 new.patches = getattr(self, "patches", []).copy()
62 return new
63
64 def clone(self, *args, **kwargs):
65 return self

Callers 15

dequantize_tensorFunction · 0.80
to_uint32Function · 0.80
to_uint16Function · 0.80
dequantize_blocks_BF16Function · 0.80
dequantize_blocks_Q8_0Function · 0.80
dequantize_blocks_Q5_1Function · 0.80
dequantize_blocks_Q5_0Function · 0.80
dequantize_blocks_Q4_1Function · 0.80
dequantize_blocks_Q4_0Function · 0.80
dequantize_blocks_Q6_KFunction · 0.80
dequantize_blocks_Q5_KFunction · 0.80
dequantize_blocks_Q4_KFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected