Skip to content

Commit

Permalink
Polish random generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
zjowowen committed Jul 19, 2024
1 parent d1791bf commit f6cbd0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion grl/generative_models/random_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ def generate_data_from_dict(
data_size, device, batch_size
)
else:
raise ValueError(f"Invalid data size: {data_size}")
try:
return list(data_size)
except:
raise ValueError(f"Invalid data size: {data_size}")


if __name__ == "__main__":
Expand Down

0 comments on commit f6cbd0d

Please sign in to comment.