tf.keras.backend.maximum
Element-wise maximum of two tensors.
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:
x = tf.Variable([[1, 2], [3, 4]])
y = tf.Variable([[2, 1], [0, -1]])
m = tf.keras.backend.maximum(x, y)
m
<tf.Tensor: 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.
[null,null,["Last updated 2020-10-01 UTC."],[],[]]