Skip to content

Commit

Permalink
Support python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinKavalan committed Jul 23, 2020
1 parent be0bbe2 commit a726517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def __next__(self):
self.Y[batch_size] = Y.loc[tid]
batch_size += 1
except Exception as e:
print(f"Ignoring {audio_path} (error: {e}).")
print("\nIgnoring " + audio_path +" (error: " + str(e) +").")

with self.lock2:
while (batch_current - self.batch_rearmost.value) % self.tids.size > self.batch_size:
Expand All @@ -359,7 +359,7 @@ def __next__(self):
self.condition.notify_all()
# print('yield', indices[0], batch_current, self.batch_rearmost.value)
self.batch_rearmost.value = batch_current

return self.X[:batch_size], self.Y[:batch_size]

return SampleLoader

0 comments on commit a726517

Please sign in to comment.