We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9f2cac commit 3474a85Copy full SHA for 3474a85
1 file changed
src/TensorFlowNET.Core/NumPy/Numpy.Math.cs
@@ -28,7 +28,16 @@ public partial class np
28
public static NDArray multiply(NDArray x1, NDArray x2) => new NDArray(tf.multiply(x1, x2));
29
30
[AutoNumPy]
31
- public static NDArray maximum(NDArray x1, NDArray x2) => new NDArray(tf.maximum(x1, x2));
+ //public static NDArray maximum(NDArray x1, NDArray x2) => new NDArray(tf.maximum(x1, x2));
32
+ public static NDArray maximum(NDArray x1, NDArray x2, int? axis = null)
33
+ {
34
+ var maxValues = tf.maximum(x1, x2);
35
+ if (axis.HasValue)
36
37
+ maxValues = tf.reduce_max(maxValues, axis: axis.Value);
38
+ }
39
+ return new NDArray(maxValues);
40
41
42
43
public static NDArray minimum(NDArray x1, NDArray x2) => new NDArray(tf.minimum(x1, x2));
0 commit comments