Skip to content

Commit eb8b92e

Browse files
Lee ReidOceania2018
authored andcommitted
fix to log
1 parent 0bf6ec0 commit eb8b92e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎src/TensorFlowNET.Core/Operations/gen_array_ops.cs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,8 @@ public static Tensor invert_permutation(Tensor x, string name = null)
193193
}
194194

195195
public static Tensor log(Tensor x, string name = null)
196-
{
197-
var _op = tf.OpDefLib._apply_op_helper("Log", name: name, args: new { x });
196+
=> tf.Context.ExecuteOp("Log", name, new ExecuteOpArgs(x));
198197

199-
return _op.outputs[0];
200-
}
201198

202199
public static Tensor rank(Tensor input, string name = null)
203200
=> tf.Context.ExecuteOp("Rank", name, new ExecuteOpArgs(input));

0 commit comments

Comments
 (0)