Skip to content

Commit 6e1ec39

Browse files
committed
Remove unrelated changes
1 parent 33df50f commit 6e1ec39

File tree

1 file changed

+6
-4
lines changed
  • src/compressed_tensors/quantization/lifecycle

1 file changed

+6
-4
lines changed

src/compressed_tensors/quantization/lifecycle/apply.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,12 @@ def find_name_or_class_matches(
331331
3. matches on module names
332332
"""
333333
targets = sorted(targets, key=lambda x: ("re:" in x, x))
334-
matches = _find_matches(name, targets) + _find_matches(
335-
module.__class__.__name__, targets, check_contains
336-
)
337-
return [match for match in matches if match is not None]
334+
if isinstance(targets, Iterable):
335+
matches = _find_matches(name, targets) + _find_matches(
336+
module.__class__.__name__, targets, check_contains
337+
)
338+
matches = [match for match in matches if match is not None]
339+
return matches
338340

339341

340342
def _find_matches(

0 commit comments

Comments
 (0)