tf-keras-skeleton.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:LIE 作者: EmbraceLife 项目源码 文件源码
def lecun_uniform(seed=None):
      """LeCun uniform initializer.

      It draws samples from a uniform distribution within [-limit, limit]
      where `limit` is `sqrt(3 / fan_in)`
      where `fan_in` is the number of input units in the weight tensor.

      Arguments:
          seed: A Python integer. Used to seed the random generator.

      Returns:
          An initializer.

      References:
          LeCun 98, Efficient Backprop,
          http://yann.lecun.com/exdb/publis/pdf/lecun-98b.pdf
      """
      return VarianceScaling(
          scale=1., mode='fan_in', distribution='uniform', seed=seed)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号