Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.keras.layers.average

TensorFlow 2.0 version View source on GitHub

Functional interface to the Average layer.

Aliases:

  • tf.compat.v1.keras.layers.average
  • tf.compat.v2.keras.layers.average
tf.keras.layers.average(
    inputs,
    **kwargs
)

Arguments:

  • inputs: A list of input tensors (at least 2).
  • **kwargs: Standard layer keyword arguments.

Returns:

A tensor, the average of the inputs.