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

Function he_normal

python/singa/initializer.py:132–146  ·  view source on GitHub ↗

He normal initializer. It draws samples from a truncated normal distribution centered on 0 with `stddev = sqrt(2 / 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 - [Delvi

(t)

Source from the content-addressed store, hash-verified

130
131
132def he_normal(t):
133 """He normal initializer.
134
135 It draws samples from a truncated normal distribution centered on 0
136 with `stddev = sqrt(2 / fan_in)`
137 where `fan_in` is the number of input units in the weight tensor.
138
139 # Arguments
140 t(Tensor):the tensor to be filled in.
141
142 # References
143 - [Delving Deep into Rectifiers: Surpassing Human-Level Performance on
144 ImageNet Classification](http://arxiv.org/abs/1502.01852)
145 """
146 _random_fill(t, scale=2., mode='fan_in', distribution='normal')
147
148def lecun_normal(t):
149 """LeCun normal initializer.

Callers

nothing calls this directly

Calls 1

_random_fillFunction · 0.85

Tested by

no test coverage detected