(converter_tensors, max_num_tensors=None,
                              randomize_sample=True)
Combines multiple `ConverterTensors` into one and samples if required.
Combines multiple `ConverterTensors` into one and samples if required.
Combines multiple ConverterTensors into one and samples if required .
def combine_converter_tensors(converter_tensors, max_num_tensors=None,
                              randomize_sample=True):
  """Combines multiple `ConverterTensors` into one and samples if required."""
  results = []
  for result in converter_tensors:
    results.extend(zip(*result))
  sampled_results = maybe_sample_items(results, max_num_tensors,
                                       randomize_sample)
  if sampled_results:
    return ConverterTensors(*zip(*sampled_results))
  else:
    return ConverterTensors()
def combine_converter_tensors ( converter_tensors , max_num_tensors = None , randomize_sample = True ) : results = [ ] for result in converter_tensors : results . extend ( zip ( * result ) ) sampled_results = maybe_sample_items ( results , max_num_tensors , randomize_sample ) if sampled_results : return ConverterTensors ( * zip ( * sampled_results ) ) else : return ConverterTensors ( )