From 0999d902098f3b14d654aeed8a8e7e4eb32152fb Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Wed, 27 Mar 2019 02:07:36 -0500 Subject: [PATCH] add tf.asin --- src/TensorFlowNET.Core/APIs/tf.math.cs | 9 +++++++++ src/TensorFlowNET.Core/Operations/gen_math_ops.cs | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/src/TensorFlowNET.Core/APIs/tf.math.cs b/src/TensorFlowNET.Core/APIs/tf.math.cs index 7405b53c..f7f3ae61 100644 --- a/src/TensorFlowNET.Core/APIs/tf.math.cs +++ b/src/TensorFlowNET.Core/APIs/tf.math.cs @@ -18,6 +18,15 @@ namespace Tensorflow public static Tensor acos(Tensor x, string name = null) => gen_math_ops.acos(x, name); + /// + /// Computes asin of x element-wise. + /// + /// + /// + /// + 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); diff --git a/src/TensorFlowNET.Core/Operations/gen_math_ops.cs b/src/TensorFlowNET.Core/Operations/gen_math_ops.cs index e7af8631..b02aaee9 100644 --- a/src/TensorFlowNET.Core/Operations/gen_math_ops.cs +++ b/src/TensorFlowNET.Core/Operations/gen_math_ops.cs @@ -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 });