Skip to content

Commit

Permalink
Fix reference before assignment in DataSilo (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdankostic authored Mar 9, 2021
1 parent 731839b commit ae4b515
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions farm/data_handler/data_silo.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ def _calculate_statistics(self):
logger.info("================")

self.counts = {}
clipped = -1
ave_len = -1

if self.data["train"]:
self.counts["train"] = len(self.data["train"])
Expand Down

0 comments on commit ae4b515

Please # to comment.