Skip to content

Commit

Permalink
Merge pull request bristolcrypto#65 from Mazelt/ml-optimizer
Browse files Browse the repository at this point in the history
Fix: out of range bug in optimizer.run
  • Loading branch information
mkskeller committed Feb 26, 2020
2 parents b17d4b6 + 3f0c76e commit 7d44986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def _(j):
indices = indices_by_label[label]
@for_range_multithread(self.n_threads, 1, n)
def _(i):
idx = indices[i + j * n_per_epoch]
idx = indices[i + j * n]
self.layers[0].X[i + label * n] = X[idx]
self.forward(None)
self.backward()
Expand Down

0 comments on commit 7d44986

Please sign in to comment.