This function randomly changes the the input dimension of the dataset.
(self)
| 31 | self.__set_input_dim() |
| 32 | |
| 33 | def __set_input_dim(self): |
| 34 | """ This function randomly changes the the input dimension of the dataset. """ |
| 35 | if self.new_input_dim is not None: |
| 36 | self.input_dim = (self.new_input_dim[0], self.new_input_dim[1]) |
| 37 | self.new_input_dim = None |
| 38 | |
| 39 | |
| 40 | class InfiniteSampler(Sampler): |