Skip to content

Commit

Permalink
convert dict values to list
Browse files Browse the repository at this point in the history
  • Loading branch information
fivosts committed Aug 16, 2022
1 parent df4d814 commit 71b53ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler_gym/datasets/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def benchmarks_from_distrib(
Select a dataset to sample from with some weight probability.
If weights is None, select among `datasets` uniformly.
"""
datasets = datasets or self._datasets.values()
datasets = datasets or list(self._datasets.values())
if weights is None:
weights = [1 / len(datasets)] * len(datasets)
if len(weights) != len(datasets):
Expand Down

0 comments on commit 71b53ad

Please sign in to comment.