We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f070232 + 5389e23 commit 245cedcCopy full SHA for 245cedc
model.py
@@ -204,7 +204,7 @@ def train(self, config):
204
np.random.shuffle(self.data)
205
batch_idxs = min(len(self.data), config.train_size) // config.batch_size
206
207
- for idx in xrange(0, batch_idxs):
+ for idx in xrange(0, int(batch_idxs)):
208
if config.dataset == 'mnist':
209
batch_images = self.data_X[idx*config.batch_size:(idx+1)*config.batch_size]
210
batch_labels = self.data_y[idx*config.batch_size:(idx+1)*config.batch_size]
0 commit comments