mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 14:20:49 +08:00
fix(quant_ops): add _layout_cls and _params aliases to mock QuantizedTensor
Signed-off-by: Macpaul Lin <macpaul@gmail.com>
This commit is contained in:
parent
77a46c68ea
commit
e3cc20034d
@ -38,7 +38,9 @@ except ImportError as e:
|
|||||||
def __init__(self, qdata, layout_type, layout_params):
|
def __init__(self, qdata, layout_type, layout_params):
|
||||||
self._qdata = qdata
|
self._qdata = qdata
|
||||||
self._layout_type = layout_type
|
self._layout_type = layout_type
|
||||||
|
self._layout_cls = layout_type # Alias for compatibility
|
||||||
self._layout_params = layout_params
|
self._layout_params = layout_params
|
||||||
|
self._params = layout_params # Alias for compatibility
|
||||||
self.device = qdata.device
|
self.device = qdata.device
|
||||||
self.dtype = qdata.dtype
|
self.dtype = qdata.dtype
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user