Skip to content

Commit 245cedc

Browse files
authored
Merge pull request #294 from petcarerx/patch-1
Update model.py
2 parents f070232 + 5389e23 commit 245cedc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def train(self, config):
204204
np.random.shuffle(self.data)
205205
batch_idxs = min(len(self.data), config.train_size) // config.batch_size
206206

207-
for idx in xrange(0, batch_idxs):
207+
for idx in xrange(0, int(batch_idxs)):
208208
if config.dataset == 'mnist':
209209
batch_images = self.data_X[idx*config.batch_size:(idx+1)*config.batch_size]
210210
batch_labels = self.data_y[idx*config.batch_size:(idx+1)*config.batch_size]

0 commit comments

Comments
 (0)