Browse Source

add tf.acos

tags/v0.9
Oceania2018 6 years ago
parent
commit
79b9a07547
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

@@ -9,6 +9,15 @@ namespace Tensorflow
public static Tensor abs(Tensor x, string name = null)
=> math_ops.abs(x, name);

/// <summary>
/// Computes acos of x element-wise.
/// </summary>
/// <param name="x"></param>
/// <param name="name"></param>
/// <returns></returns>
public static Tensor acos(Tensor x, string name = null)
=> gen_math_ops.acos(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

@@ -58,6 +58,13 @@ namespace Tensorflow
return _op.outputs[0];
}
public static Tensor acos(Tensor x, string name = null)
{
var _op = _op_def_lib._apply_op_helper("Acos", 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