tf.keras.backend.maximum  |  TensorFlow v2.0.0 (original) (raw)

tf.keras.backend.maximum

Stay organized with collections Save and categorize content based on your preferences.

Element-wise maximum of two tensors.

View aliases

Compat aliases for migration

SeeMigration guide for more details.

tf.compat.v1.keras.backend.maximum

tf.keras.backend.maximum(
    x, y
)
Arguments
x Tensor or variable.
y Tensor or variable.
Returns
A tensor with the element wise maximum value(s) of x and y.

Examples:

    # maximum of two tensors
    >>> x = tf.Variable([[1, 2], [3, 4]])
    >>> y = tf.Variable([[2, 1], [0, -1]])
    >>> m = tf.keras.backend.maximum(x, y)
    >>> m
    <tf.Tensor: id=42, shape=(2, 2), dtype=int32, numpy=
    array([[2, 2],
           [3, 4]], dtype=int32)>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2020-10-01 UTC.