Skip to content

Commit

Permalink
any not all
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Sordoni committed Nov 10, 2024
1 parent 191358c commit a345c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mttl/models/containers/selectors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def forward(self, input, **kwargs) -> BatchExpertsSelectorOutput:
task_names = self.routing_infos.task_names

if (
any(
all(
task_name not in self.task_to_expert_name
for task_name in task_names
)
Expand Down

0 comments on commit a345c32

Please sign in to comment.