From 0eff6a2a0185d5d189994f1f5457f94ad912b501 Mon Sep 17 00:00:00 2001 From: Eli Belash Date: Wed, 4 Dec 2019 16:06:50 +0200 Subject: [PATCH] added tf.sub --- src/TensorFlowNET.Core/APIs/tf.math.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TensorFlowNET.Core/APIs/tf.math.cs b/src/TensorFlowNET.Core/APIs/tf.math.cs index 9f2b493c..dec4c470 100644 --- a/src/TensorFlowNET.Core/APIs/tf.math.cs +++ b/src/TensorFlowNET.Core/APIs/tf.math.cs @@ -252,9 +252,10 @@ namespace Tensorflow /// public Tensor clip_by_value (Tensor t, Tensor clip_value_min, Tensor clip_value_max, string name = "ClipByValue") => clip_ops.clip_by_value(t, clip_value_min, clip_value_max, name); + + public Tensor sub(Tx a, Ty b, string name = null) + => gen_math_ops.sub(a, b, name: name); - public Tensor sub(Tensor a, Tensor b) - => gen_math_ops.sub(a, b); public Tensor divide(Tensor a, Tensor b) => gen_math_ops.real_div(a, b);