ea35a10efad0b27594f97bea2bf732a4910fa7d8,returnn/tf/layers/rec.py,MaskedComputationLayer,get_losses,#Any#Any#Any#Any#Any#Any#Any#,6902

Before Change


      sub_layer_class = sub_layer.__class__
    else:
      sub_layer = None
      sub_layer_class, sub_layer_kwargs = cls._create_template(name=name, network=network, **kwargs)
      sub_layer_kwargs["output"] = output
    for loss in sub_layer_class.get_losses(reduce_func=reduce_func, layer=sub_layer, **sub_layer_kwargs):
      assert isinstance(loss, LossHolder)
      losses.append(loss.copy_new_base(network=network, name="%s/%s" % (name, loss.name)))

After Change


      sub_layer_class = sub_layer.__class__
    else:
      sub_layer = None
      sub_layer_class, sub_layer_kwargs = kwargs["_layer_class"], kwargs["_layer_desc"]
      assert issubclass(sub_layer_class, LayerBase) and isinstance(sub_layer_kwargs, dict)
      sub_layer_kwargs["output"] = output
    for loss in sub_layer_class.get_losses(reduce_func=reduce_func, layer=sub_layer, **sub_layer_kwargs):
      assert isinstance(loss, LossHolder)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: rwth-i6/returnn
Commit Name: ea35a10efad0b27594f97bea2bf732a4910fa7d8
Time: 2021-03-24
Author: albzey@gmail.com
File Name: returnn/tf/layers/rec.py
Class Name: MaskedComputationLayer
Method Name: get_losses


Project Name: rwth-i6/returnn
Commit Name: ea35a10efad0b27594f97bea2bf732a4910fa7d8
Time: 2021-03-24
Author: albzey@gmail.com
File Name: returnn/tf/layers/rec.py
Class Name: MaskedComputationLayer
Method Name: get_rec_initial_extra_outputs_shape_invariants


Project Name: rwth-i6/returnn
Commit Name: ea35a10efad0b27594f97bea2bf732a4910fa7d8
Time: 2021-03-24
Author: albzey@gmail.com
File Name: returnn/tf/layers/rec.py
Class Name: MaskedComputationLayer
Method Name: get_out_data_from_opts


Project Name: rwth-i6/returnn
Commit Name: ea35a10efad0b27594f97bea2bf732a4910fa7d8
Time: 2021-03-24
Author: albzey@gmail.com
File Name: returnn/tf/layers/rec.py
Class Name: MaskedComputationLayer
Method Name: get_rec_initial_extra_outputs