ea35a10efad0b27594f97bea2bf732a4910fa7d8,returnn/tf/layers/basic.py,SubnetworkLayer,transform_config_dict,#Any#Any#Any#Any#,6559

Before Change


    // Construct it now, just to resolve dependencies.
    cls._construct_template_subnet(
      name=d.get("name", "unknown-subnet"),
      network=network, get_parent_layer=get_layer, parent_layer_cache=d.setdefault("_parent_layer_cache", {}),
      subnetwork=d["subnetwork"],
      concat_sources=d.get("concat_sources", True), sources=d["sources"])

After Change


    d["_subnet"] = subnet
    // In case of non-template construction, this will trigger the non-template construction of our "output" sublayer.
    d["_output"] = subnet.construct_layer("output", parent_get_layer=get_layer)
    d["_from"] = d.get("from", "data")  // cache this
    d["from"] = []  // disable now. we should get them in the template construction when needed
    super(SubnetworkLayer, cls).transform_config_dict(d, network=network, get_layer=get_layer)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

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: transform_config_dict


Project Name: explosion/thinc
Commit Name: 3140a57326e533548df00f0f128cd356932d400b
Time: 2017-01-11
Author: honnibal+gh@gmail.com
File Name: thinc/neural/_classes/model.py
Class Name: Model
Method Name: __init__


Project Name: arviz-devs/arviz
Commit Name: 3a73dadd6f892ca3c989ceb47c544fbf0d46900b
Time: 2019-12-08
Author: ahartikainen@users.noreply.github.com
File Name: arviz/plots/plot_utils.py
Class Name:
Method Name: _create_axes_grid