(weight_name)
| 224 | *, skip_prefixes: Optional[List[str]] = None, mapper: Optional[WeightsMapper] = None |
| 225 | ): |
| 226 | def _can_skip(weight_name): |
| 227 | return any(weight_name.startswith(p) for p in (skip_prefixes or [])) |
| 228 | |
| 229 | def fn(weight_name): |
| 230 | if mapper is not None: |