Skip to content

Commit 0999d90

Browse files
committed
add tf.asin
1 parent 5d120f0 commit 0999d90

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ public static Tensor abs(Tensor x, string name = null)
1818
public static Tensor acos(Tensor x, string name = null)
1919
=> gen_math_ops.acos(x, name);
2020

21+
/// <summary>
22+
/// Computes asin of x element-wise.
23+
/// </summary>
24+
/// <param name="x"></param>
25+
/// <param name="name"></param>
26+
/// <returns></returns>
27+
public static Tensor asin(Tensor x, string name = null)
28+
=> gen_math_ops.asin(x, name);
29+
2130
public static Tensor add(Tensor a, Tensor b)
2231
=> gen_math_ops.add(a, b);
2332

src/TensorFlowNET.Core/Operations/gen_math_ops.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ public static Tensor acos(Tensor x, string name = null)
6565
return _op.outputs[0];
6666
}
6767

68+
public static Tensor asin(Tensor x, string name = null)
69+
{
70+
var _op = _op_def_lib._apply_op_helper("Asin", name, args: new { x });
71+
72+
return _op.outputs[0];
73+
}
74+
6875
public static Tensor add(Tensor x, Tensor y, string name = null)
6976
{
7077
var _op = _op_def_lib._apply_op_helper("Add", name, args: new { x, y });

0 commit comments

Comments
 (0)