(self, batch_size, seed=None)
Return the next batch_size examples from this data set.
Return the next batch_size examples from this data set.
Return the next batch_size examples from this data set .
def next_batch(self, batch_size, seed=None):
        """Return the next batch_size examples from this data set.
        """
        start = self._index_in_epoch
        self._index_in_epoch += batch_size
        if self._index_in_epoch > self.num_examples:
            self.epochs_completed += 1  # Finished epoch.
            self.shuffle_data(seed)
            # Start next epoch
            start = 0
            self._index_in_epoch = batch_size
        end = self._index_in_epoch

        if self.noisy_point_clouds is None:
            return self.point_clouds[start:end], self.labels[start:end], None
        else:
            return (
                self.point_clouds[start:end],
                self.labels[start:end],
                self.noisy_point_clouds[start:end],
            )
def next_batch ( self , batch_size , seed = None ) : start = self . _index_in_epoch self . _index_in_epoch += batch_size if self . _index_in_epoch > self . num_examples : self . epochs_completed += 1 # Finished epoch. self . shuffle_data ( seed ) # Start next epoch start = 0 self . _index_in_epoch = batch_size end = self . _index_in_epoch if self . noisy_point_clouds is None : return self . point_clouds [ start : end ] , self . labels [ start : end ] , None else : return ( self . point_clouds [ start : end ] , self . labels [ start : end ] , self . noisy_point_clouds [ start : end ] , )