raise
self.cuda = cuda
- self.batch_size = batch_size
self.problem_number = problem_number
- self.nb_batches = nb_samples // batch_size
- self.nb_samples = self.nb_batches * self.batch_size
+
+ self.batch_size = batch_size
+ self.nb_samples = nb_samples
+ self.nb_batches = self.nb_samples // self.batch_size
seeds = torch.LongTensor(self.nb_batches).random_()
mp_args = []
raise
self.cuda = cuda
- self.batch_size = batch_size
self.problem_number = problem_number
- self.nb_batches = nb_samples // batch_size
- self.nb_samples = self.nb_batches * self.batch_size
+
+ self.batch_size = batch_size
+ self.nb_samples = nb_samples
+ self.nb_batches = self.nb_samples // self.batch_size
+
self.targets = []
self.input_storages = []