ea35a10efad0b27594f97bea2bf732a4910fa7d8,returnn/tf/network.py,TFNetwork,get_layer,#TFNetwork#Any#,1181

Before Change


        raise LayerNotFound(
          "cannot get layer %r, no extra net for %r" % (layer_name, self),
          layer_name=layer_name, network=self)
      return extra_net.get_layer(layer_name)
    if layer_name.startswith("base:"):
      if not self.parent_net:
        raise LayerNotFound(
          "cannot get layer %r, no parent net for %r" % (layer_name, self), layer_name=layer_name, network=self)

After Change


      if layer_name not in extra_net.layers:
        raise LayerNotFound(
          "layer %r not found in extra net %r" % (layer_name, extra_net), layer_name=layer_name, network=self)
      return extra_net.layers[layer_name]
    if layer_name.startswith("base:"):
      if not self.parent_net:
        raise LayerNotFound(
          "cannot get layer %r, no parent net for %r" % (layer_name, self), layer_name=layer_name, network=self)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rwth-i6/returnn
Commit Name: ea35a10efad0b27594f97bea2bf732a4910fa7d8
Time: 2021-03-24
Author: albzey@gmail.com
File Name: returnn/tf/network.py
Class Name: TFNetwork
Method Name: get_layer


Project Name: tensorflow/cleverhans
Commit Name: 03bebee4b08e6fb3d9a57af330e903ad9b08b77a
Time: 2018-06-11
Author: dberth@google.com
File Name: cleverhans/model.py
Class Name: Model
Method Name: get_logits


Project Name: tensorflow/cleverhans
Commit Name: 03bebee4b08e6fb3d9a57af330e903ad9b08b77a
Time: 2018-06-11
Author: dberth@google.com
File Name: cleverhans/model.py
Class Name: Model
Method Name: get_probs