def build_set(self, queue, triplet_builder, log):
    while 1:
        datasets = []
        for i in range(TRAIN_SEQS_PER_EPOCH):
            dataset = triplet_builder.build_set()
            datasets.append(dataset)
        dataset = ConcatDataset(datasets)
        queue.put(dataset)
def build_set(self, queue, triplet_builder, log):
    while 1:
        datasets = []
        for i in range(TRAIN_SEQS_PER_EPOCH):
            dataset = triplet_builder.build_set()
            datasets.append(dataset)
        dataset = ConcatDataset(datasets)
        queue.put(dataset)