Skip to content

Commit 9552d4c

Browse files
feat: add np.less and np.greater binding
1 parent 725ec1e commit 9552d4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/TensorFlowNET.Core/NumPy/Numpy.Math.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,11 @@ public static NDArray dot(NDArray x1, NDArray x2, NDArray? axes = null, string?
8585

8686
[AutoNumPy]
8787
public static NDArray add(NDArray x, NDArray y) => new NDArray(math_ops.add(x, y));
88+
89+
[AutoNumPy]
90+
public static NDArray greater(NDArray x, NDArray y) => new NDArray(tf.greater(x, y));
91+
92+
[AutoNumPy]
93+
public static NDArray less(NDArray x, NDArray y) => new NDArray(tf.less(x, y));
8894
}
8995
}

0 commit comments

Comments
 (0)