44d558ad7f13251650f40475eef6652df59e4b09,keras/layers/containers.py,Graph,set_previous,#Graph#Any#Any#,254

Before Change


                if k in self.inputs and v in layer.outputs:
                    self.inputs[k].set_previous(layer.outputs[v])
                else:
                    raise Exception("Invalid connection map.")

    def get_input(self, train=False):
        if len(self.inputs) == len(self.outputs) == 1:
            return self.inputs[self.input_order[0]].get_input(train)

After Change



    Note: `Graph` can only be used as a layer
    (connect, input, get_input, get_output)
    when it has exactly one input and one output.
    """
    def __init__(self):
        self.namespace = set()  // strings
        self.nodes = OrderedDict()  // layer-like
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: 44d558ad7f13251650f40475eef6652df59e4b09
Time: 2016-02-22
Author: Nicholas.Eggert@target.com
File Name: keras/layers/containers.py
Class Name: Graph
Method Name: set_previous


Project Name: albermax/innvestigate
Commit Name: 05fc3863f9b6c5b9a0393368fb02e999f1fc4d32
Time: 2018-04-15
Author: work.alber.maximilian@gmail.com
File Name: innvestigate/utils/keras/graph.py
Class Name:
Method Name: get_layer_from_config


Project Name: keras-team/keras
Commit Name: d8864bfe48d64c15dc70f13e46c7e08772811fd9
Time: 2016-05-05
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: predict


Project Name: keras-team/keras
Commit Name: e5b99c7512fe6ba5067481ec6136e2abefda1be0
Time: 2016-06-05
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: predict_generator