From eb8b92ed5738af8fc031e923476088b6aa4749cc Mon Sep 17 00:00:00 2001 From: Lee Reid Date: Thu, 25 Mar 2021 10:33:02 +0100 Subject: [PATCH] fix to log --- src/TensorFlowNET.Core/Operations/gen_array_ops.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/TensorFlowNET.Core/Operations/gen_array_ops.cs b/src/TensorFlowNET.Core/Operations/gen_array_ops.cs index 55b75c3c..80c524ef 100644 --- a/src/TensorFlowNET.Core/Operations/gen_array_ops.cs +++ b/src/TensorFlowNET.Core/Operations/gen_array_ops.cs @@ -193,11 +193,8 @@ namespace Tensorflow } public static Tensor log(Tensor x, string name = null) - { - var _op = tf.OpDefLib._apply_op_helper("Log", name: name, args: new { x }); + => tf.Context.ExecuteOp("Log", name, new ExecuteOpArgs(x)); - return _op.outputs[0]; - } public static Tensor rank(Tensor input, string name = null) => tf.Context.ExecuteOp("Rank", name, new ExecuteOpArgs(input));