Skip to content

Commit bfa9f77

Browse files
committed
tf.math.sqrt
1 parent 367ac9e commit bfa9f77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public Tensor divide(Tensor a, Tensor b)
354354
=> a / b;
355355

356356
public Tensor sqrt(Tensor a, string name = null)
357-
=> gen_math_ops.sqrt(a, name);
357+
=> math_ops.sqrt(a, name);
358358

359359
public Tensor sign(Tensor a, string name = null)
360360
=> gen_math_ops.sign(a, name);

src/TensorFlowNET.Core/Operations/math_ops.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public static Tensor erf(Tensor x, string name = null)
269269
=> tf.Context.ExecuteOp("Erf", name, new ExecuteOpArgs(x));
270270

271271
public static Tensor sqrt(Tensor x, string name = null)
272-
=> gen_math_ops.sqrt(x, name: name);
272+
=> tf.Context.ExecuteOp("Sqrt", name, new ExecuteOpArgs(x));
273273

274274
public static Tensor multiply(Tensor x, Tensor y, string name = null)
275275
=> tf.Context.ExecuteOp("Mul", name, new ExecuteOpArgs(x, y));

0 commit comments

Comments
 (0)