MCPcopy Create free account
hub / github.com/tensorflow/lingvo / CreateChild

Method CreateChild

lingvo/core/base_layer.py:974–1003  ·  view source on GitHub ↗

Create a sub layer. The created sub layer can be accessed by `name`. E.g.:: self.CreateChild('foo', foo_params) self.foo.FProp... or:: self.children['foo'].Fprop... self.children.foo.Fprop... If the layer does not have a name set, i.e. foo_params.name

(self, name: str, params: BaseLayerParamsT)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 5

_CheckNameMethod · 0.95
CopyBaseParamsMethod · 0.95
_CreateChildContextMethod · 0.95
CopyMethod · 0.45
InstantiateMethod · 0.45

Tested by 10

__init__Method · 0.64
__init__Method · 0.64
__init__Method · 0.64
__init__Method · 0.64
__init__Method · 0.64
__init__Method · 0.64
testGetDescendantMethod · 0.64
testCreateAccumulatorMethod · 0.64
__init__Method · 0.64