def _get_flat_core_sizes(cores):
 core_sizes_lists = []
 for core in cores:
  flat_output_size = nest.flatten(core.output_size)
  core_sizes_lists.append([tensor_shape.as_shape(size).as_list() for size in flat_output_size])
 return core_sizes_lists

def _get_flat_core_sizes ( cores ) : core_sizes_lists = [ ] for core in cores : flat_output_size = nest . flatten ( core . output_size ) core_sizes_lists . append ( [ tensor_shape . as_shape ( size ) . as_list ( ) for size in flat_output_size ] ) return core_sizes_lists
obtains the list flattened output sizes of a list of cores .