Browse Source

Change default stddev to 0.05f for RandomNormal.

tags/v0.20
Oceania2018 5 years ago
parent
commit
623afd529e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/TensorFlowNET.Core/APIs/tf.init.cs
  2. +1
    -1
      src/TensorFlowNET.Core/Operations/Initializers/RandomNormal.cs

+ 1
- 1
src/TensorFlowNET.Core/APIs/tf.init.cs View File

@@ -88,7 +88,7 @@ namespace Tensorflow
public class InitializersImpl
{
public IInitializer random_normal_initializer(float mean = 0.0f,
float stddev = 1.0f,
float stddev = 0.05f,
int? seed = null,
TF_DataType dtype = TF_DataType.TF_FLOAT) => new RandomNormal(mean: mean,
stddev: stddev,


+ 1
- 1
src/TensorFlowNET.Core/Operations/Initializers/RandomNormal.cs View File

@@ -28,7 +28,7 @@ namespace Tensorflow.Operations.Initializers
private TF_DataType dtype;

public RandomNormal(float mean = 0.0f,
float stddev = 1.0f,
float stddev = 0.05f,
int? seed = null,
TF_DataType dtype = TF_DataType.TF_FLOAT)
{


Loading…
Cancel
Save