Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Sordoni committed Aug 1, 2024
1 parent f74c6a5 commit 265678c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mttl/models/containers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def create_selector_for_container(
transformer,
container,
modifier_name: str,
selector_config: SelectorConfig,
selector_cache: SelectorsCache,
selector_config: SelectorConfig = None,
selector_cache: SelectorsCache = None,
) -> Selector:
if container.selector is not None and container.selector.config == selector_config:
# selector already exists and has the same config
Expand Down Expand Up @@ -130,8 +130,8 @@ def create_selector_for_container(
def replace_selector_for_container(
transformer,
modifier_name: str,
selector_config: SelectorConfig,
selector_cache: SelectorsCache,
selector_config: SelectorConfig = None,
selector_cache: SelectorsCache = None,
force_replace: bool = False,
) -> Tuple[int, int]:
"""
Expand Down
1 change: 0 additions & 1 deletion mttl/models/expert_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,6 @@ def set_selector(
):
from mttl.models.containers import replace_selector_for_container

selector_config = self._get_selector_config(modifier_name)
n_selectors, n_selectors_views = replace_selector_for_container(
self.model,
modifier_name,
Expand Down

0 comments on commit 265678c

Please sign in to comment.