Skip to content

Commit

Permalink
Merge pull request #20742 from lgeiger:keras-init
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 204915130
  • Loading branch information
tensorflower-gardener committed Jul 17, 2018
2 parents 17b9b3f + afc16be commit d51aff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/python/keras/initializers.py
Expand Up @@ -58,7 +58,7 @@ def lecun_normal(seed=None):
Backprop](http://yann.lecun.com/exdb/publis/pdf/lecun-98b.pdf)
"""
return VarianceScaling(
scale=1., mode='fan_in', distribution='normal', seed=seed)
scale=1., mode='fan_in', distribution='truncated_normal', seed=seed)


@tf_export('keras.initializers.lecun_uniform')
Expand Down Expand Up @@ -101,7 +101,7 @@ def he_normal(seed=None):
He et al., http://arxiv.org/abs/1502.01852
"""
return VarianceScaling(
scale=2., mode='fan_in', distribution='normal', seed=seed)
scale=2., mode='fan_in', distribution='truncated_normal', seed=seed)


@tf_export('keras.initializers.he_uniform')
Expand Down

0 comments on commit d51aff2

Please sign in to comment.