ea35a10efad0b27594f97bea2bf732a4910fa7d8,returnn/tf/layers/basic.py,SubnetworkLayer,get_rec_initial_extra_outputs,#Any#Any#Any#,6743
Before Change
:rtype: dict[str,tf.Tensor]
from .rec import _TemplateLayer
subnet = cls._construct_template_subnet(
name=kwargs.get("name", "<unknown>"), network=kwargs["network"], subnetwork=kwargs["subnetwork"],
parent_layer_cache=kwargs.get("_parent_layer_cache", None),
sources=kwargs["sources"], concat_sources=kwargs.get("concat_sources", True))
extra_outputs = {}
for layer_name, sub_layer in subnet.layers.items():
assert isinstance(sub_layer, _TemplateLayer)
cl = sub_layer.layer_class_type
After Change
from .rec import _TemplateLayer
from returnn.tf.network import Subnetwork
subnet_ = kwargs["_subnet"]
assert isinstance(subnet_, Subnetwork)
subnet = subnet_.net
extra_outputs = {}
for layer_name, sub_layer in subnet.layers.items():
assert isinstance(sub_layer, _TemplateLayer)
cl = sub_layer.layer_class_type
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: rwth-i6/returnn
Commit Name: ea35a10efad0b27594f97bea2bf732a4910fa7d8
Time: 2021-03-24
Author: albzey@gmail.com
File Name: returnn/tf/layers/basic.py
Class Name: SubnetworkLayer
Method Name: get_rec_initial_extra_outputs
Project Name: rwth-i6/returnn
Commit Name: ea35a10efad0b27594f97bea2bf732a4910fa7d8
Time: 2021-03-24
Author: albzey@gmail.com
File Name: returnn/tf/layers/basic.py
Class Name: SubnetworkLayer
Method Name: transform_config_dict
Project Name: rwth-i6/returnn
Commit Name: ea35a10efad0b27594f97bea2bf732a4910fa7d8
Time: 2021-03-24
Author: albzey@gmail.com
File Name: returnn/tf/layers/basic.py
Class Name: SubnetworkLayer
Method Name: get_rec_initial_extra_outputs_shape_invariants