Skip to content

Commit

Permalink
Fix bug with large batch sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Apr 22, 2024
1 parent 0468abb commit f86ce7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3294,6 +3294,7 @@ def __init__(self, n_epochs=1, batch_size=1, program=None):
self.n_epochs = n_epochs
self.batch_size = batch_size
self.program = program
Layer.back_batch_size = max(Layer.back_batch_size, batch_size)

def fit(self, X_train, y_train):
""" Train classifier.
Expand Down

0 comments on commit f86ce7c

Please sign in to comment.