We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e89a2 commit da19b0fCopy full SHA for da19b0f
src/compressed_tensors/quantization/lifecycle/apply.py
@@ -331,12 +331,10 @@ def find_name_or_class_matches(
331
3. matches on module names
332
"""
333
targets = sorted(targets, key=lambda x: ("re:" in x, x))
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
+ matches = _find_matches(name, targets) + _find_matches(
+ module.__class__.__name__, targets, check_contains
+ )
+ return [match for match in matches if match is not None]
340
341
342
def _find_matches(
0 commit comments