Skip to content

Commit 11224e4

Browse files
NucsOceania2018
authored andcommitted
added tf.sub<tx,ty>
1 parent c2b2c25 commit 11224e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/TensorFlowNET.Core/APIs/tf.math.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,10 @@ public Tensor _clip_by_value(Tensor t, Tensor clip_value_min, Tensor clip_value_
252252
/// </remarks>
253253
public Tensor clip_by_value (Tensor t, Tensor clip_value_min, Tensor clip_value_max, string name = "ClipByValue")
254254
=> clip_ops.clip_by_value(t, clip_value_min, clip_value_max, name);
255+
256+
public Tensor sub<Tx, Ty>(Tx a, Ty b, string name = null)
257+
=> gen_math_ops.sub(a, b, name: name);
255258

256-
public Tensor sub(Tensor a, Tensor b)
257-
=> gen_math_ops.sub(a, b);
258259

259260
public Tensor divide(Tensor a, Tensor b)
260261
=> gen_math_ops.real_div(a, b);

0 commit comments

Comments
 (0)