| @@ -19,7 +19,7 @@ | |||||
| </PropertyGroup> | </PropertyGroup> | ||||
| <ItemGroup> | <ItemGroup> | ||||
| <PackageReference Include="SciSharp.TensorFlow.Redist" Version="2.5.0" /> | |||||
| <PackageReference Include="SciSharp.TensorFlow.Redist" Version="2.6.0" /> | |||||
| </ItemGroup> | </ItemGroup> | ||||
| <ItemGroup> | <ItemGroup> | ||||
| @@ -60,25 +60,7 @@ namespace Tensorflow | |||||
| { | { | ||||
| return tf_with(ops.name_scope(name, "moments", new { value }), scope => | return tf_with(ops.name_scope(name, "moments", new { value }), scope => | ||||
| { | { | ||||
| try | |||||
| { | |||||
| return _log_prob(value); | |||||
| } | |||||
| #pragma warning disable CS0168 // Variable is declared but never used | |||||
| catch (Exception e1) | |||||
| #pragma warning restore CS0168 // Variable is declared but never used | |||||
| { | |||||
| try | |||||
| { | |||||
| return math_ops.log(_prob(value)); | |||||
| #pragma warning disable CS0168 // Variable is declared but never used | |||||
| } | |||||
| catch (Exception e2) | |||||
| #pragma warning restore CS0168 // Variable is declared but never used | |||||
| { | |||||
| throw new NotImplementedException(); | |||||
| } | |||||
| } | |||||
| return math_ops.log(value); | |||||
| }); | }); | ||||
| } | } | ||||
| @@ -656,7 +656,7 @@ namespace Tensorflow | |||||
| /// <param name="name"></param> | /// <param name="name"></param> | ||||
| /// <returns></returns> | /// <returns></returns> | ||||
| public static Tensor stop_gradient(Tensor input, string name = null) | public static Tensor stop_gradient(Tensor input, string name = null) | ||||
| => gen_array_ops.stop_gradient(input, name); | |||||
| => tf.Context.ExecuteOp("StopGradient", name, new ExecuteOpArgs(input)); | |||||
| /// <summary> | /// <summary> | ||||
| /// Extracts a strided slice of a tensor (generalized python array indexing). | /// Extracts a strided slice of a tensor (generalized python array indexing). | ||||