Skip to content

Commit fcc452b

Browse files
Vargolpsychedelicious
authored andcommitted
fix picky ruff issue
1 parent 89ebdac commit fcc452b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/backend/quantization/gguf/ggml_tensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ def to(self, *args, **kwargs):
126126
for func_arg in args:
127127
if isinstance(func_arg, torch.dtype) and func_arg != self.quantized_data.dtype:
128128
raise ValueError("Operation changed the dtype of GGMLTensor unexpectedly.")
129-
if 'dtype' in kwargs.keys():
130-
if kwargs['dtype'] != self.quantized_data.dtype:
129+
if "dtype" in kwargs.keys():
130+
if kwargs["dtype"] != self.quantized_data.dtype:
131131
raise ValueError("Operation changed the dtype of GGMLTensor unexpectedly.")
132132
self.quantized_data = self.quantized_data.to(*args, **kwargs)
133133
return self

0 commit comments

Comments
 (0)