Skip to content

Commit

Permalink
try to run faster
Browse files Browse the repository at this point in the history
Signed-off-by: dafnapension <dafnashein@yahoo.com>
  • Loading branch information
dafnapension committed Apr 5, 2024
1 parent d9fef6a commit 86b451f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/unitxt/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,10 @@ def process(
) -> Generator:
yield from wo_stream

self.instance_filters.append(WideOpen(condition="eq", values={}))

for instance_filter in self.instance_filters:
for instance_filter in [
*self.instance_filters,
WideOpen(condition="eq", values={}),
]:
if isoftype(instance_filter, WideOpen):
subset_prefix = ""
else:
Expand Down

0 comments on commit 86b451f

Please sign in to comment.