mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-18 10:33:01 +08:00
Ruff
This commit is contained in:
parent
0411153ac6
commit
cdc21164f2
@ -228,14 +228,14 @@ class QuantizedTensor(torch.Tensor):
|
|||||||
new_kwargs = dequant_arg(kwargs)
|
new_kwargs = dequant_arg(kwargs)
|
||||||
return func(*new_args, **new_kwargs)
|
return func(*new_args, **new_kwargs)
|
||||||
|
|
||||||
def data_ptr(cls):
|
def data_ptr(self):
|
||||||
return cls._qdata.data_ptr()
|
return self._qdata.data_ptr()
|
||||||
|
|
||||||
def is_pinned(cls):
|
def is_pinned(self):
|
||||||
return cls._qdata.is_pinned()
|
return self._qdata.is_pinned()
|
||||||
|
|
||||||
def is_contiguous(cls):
|
def is_contiguous(self):
|
||||||
return cls._qdata.is_contiguous()
|
return self._qdata.is_contiguous()
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Generic Utilities (Layout-Agnostic Operations)
|
# Generic Utilities (Layout-Agnostic Operations)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user