MCPcopy Create free account
hub / github.com/apache/singa / lecun_uniform

Function lecun_uniform

python/singa/initializer.py:81–94  ·  view source on GitHub ↗

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 t(Tensor):the tensor to be filled in. # References -

(t)

Source from the content-addressed store, hash-verified

79
80
81def lecun_uniform(t):
82 """LeCun uniform initializer.
83
84 It draws samples from a uniform distribution within [-limit, limit]
85 where `limit` is `sqrt(3 / fan_in)`
86 where `fan_in` is the number of input units in the weight tensor.
87
88 # Arguments
89 t(Tensor):the tensor to be filled in.
90
91 # References
92 - [Efficient BackProp](http://yann.lecun.com/exdb/publis/pdf/lecun-98b.pdf)
93 """
94 _random_fill(t, scale=1., mode='fan_in', distribution='uniform')
95
96
97def glorot_normal(t):

Callers

nothing calls this directly

Calls 1

_random_fillFunction · 0.85

Tested by

no test coverage detected