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.
1 parent 3041fa3 commit 5389e23Copy full SHA for 5389e23
model.py
@@ -198,7 +198,7 @@ def train(self, config):
198
np.random.shuffle(self.data)
199
batch_idxs = min(len(self.data), config.train_size) // config.batch_size
200
201
- for idx in xrange(0, batch_idxs):
+ for idx in xrange(0, int(batch_idxs)):
202
if config.dataset == 'mnist':
203
batch_images = self.data_X[idx*config.batch_size:(idx+1)*config.batch_size]
204
batch_labels = self.data_y[idx*config.batch_size:(idx+1)*config.batch_size]
0 commit comments