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

Before Change


            self.inputs[self.input_order[0]].set_previous(layer)
        else:
            if not connection_map:
                raise Exception("Cannot attach multi-input layer: "
                                "no connection_map provided.")
            for k, v in connection_map.items():
                if k in self.inputs and v in layer.outputs:
                    self.inputs[k].set_previous(layer.outputs[v])
                else:

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

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


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