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

Method __init__

examples/trans/model.py:518–521  ·  view source on GitHub ↗
(self, n_features, eps=1e-6)

Source from the content-addressed store, hash-verified

516
517class LayerNorm(layer.Layer):
518 def __init__(self, n_features, eps=1e-6):
519 super(LayerNorm, self).__init__()
520 self.n_features = n_features
521 self.eps = eps
522
523 def initialize(self, x):
524 shape = (self.n_features,)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected