Browse Source

add tf.asin

tags/v0.9
Oceania2018 6 years ago
parent
commit
0999d90209
2 changed files with 16 additions and 0 deletions
  1. +9
    -0
      src/TensorFlowNET.Core/APIs/tf.math.cs
  2. +7
    -0
      src/TensorFlowNET.Core/Operations/gen_math_ops.cs

+ 9
- 0
src/TensorFlowNET.Core/APIs/tf.math.cs View File

@@ -18,6 +18,15 @@ namespace Tensorflow
public static Tensor acos(Tensor x, string name = null)
=> gen_math_ops.acos(x, name);

/// <summary>
/// Computes asin of x element-wise.
/// </summary>
/// <param name="x"></param>
/// <param name="name"></param>
/// <returns></returns>
public static Tensor asin(Tensor x, string name = null)
=> gen_math_ops.asin(x, name);

public static Tensor add(Tensor a, Tensor b)
=> gen_math_ops.add(a, b);



+ 7
- 0
src/TensorFlowNET.Core/Operations/gen_math_ops.cs View File

@@ -65,6 +65,13 @@ namespace Tensorflow
return _op.outputs[0];
}
public static Tensor asin(Tensor x, string name = null)
{
var _op = _op_def_lib._apply_op_helper("Asin", name, args: new { x });
return _op.outputs[0];
}
public static Tensor add(Tensor x, Tensor y, string name = null)
{
var _op = _op_def_lib._apply_op_helper("Add", name, args: new { x, y });


Loading…
Cancel
Save