def _zip_layer_sequence(layers,
                        tensors, **kwargs):
  """Applies a sequence of layers to a sequence of tensors of the same size."""
  return [layer(tensor, **kwargs) for layer, tensor in zip(layers, tensors)]