Browse Source

feat: add np.less and np.greater binding

tags/v0.110.4-Transformer-Model
Wanglongzhi2001 2 years ago
parent
commit
9552d4cb7a
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/TensorFlowNET.Core/NumPy/Numpy.Math.cs

+ 6
- 0
src/TensorFlowNET.Core/NumPy/Numpy.Math.cs View File

@@ -85,5 +85,11 @@ namespace Tensorflow.NumPy

[AutoNumPy]
public static NDArray add(NDArray x, NDArray y) => new NDArray(math_ops.add(x, y));

[AutoNumPy]
public static NDArray greater(NDArray x, NDArray y) => new NDArray(tf.greater(x, y));

[AutoNumPy]
public static NDArray less(NDArray x, NDArray y) => new NDArray(tf.less(x, y));
}
}

Loading…
Cancel
Save