| @@ -62,5 +62,25 @@ namespace Tensorflow | |||||
| stddev: stddev, | stddev: stddev, | ||||
| seed: seed, | seed: seed, | ||||
| dtype: dtype); | dtype: dtype); | ||||
| /// <summary> | |||||
| /// Initializer capable of adapting its scale to the shape of weights tensors. | |||||
| /// </summary> | |||||
| /// <param name="scale"></param> | |||||
| /// <param name="mode"></param> | |||||
| /// <param name="distribution"></param> | |||||
| /// <param name="seed"></param> | |||||
| /// <param name="dtype"></param> | |||||
| /// <returns></returns> | |||||
| public IInitializer variance_scaling_initializer(float scale = 1.0f, | |||||
| string mode = "fan_in", | |||||
| string distribution = "truncated_normal", | |||||
| int? seed = null, | |||||
| TF_DataType dtype = TF_DataType.TF_FLOAT) => new VarianceScaling( | |||||
| scale: scale, | |||||
| mode: mode, | |||||
| distribution: distribution, | |||||
| seed: seed, | |||||
| dtype: dtype); | |||||
| } | } | ||||
| } | } | ||||