aca1113c020ae5a220d2a075396ecb8a4a873ca6,tensorlayer/layers/core.py,Layer,_add_node,#Layer#Any#Any#,158

Before Change


        return outputs

    def _add_node(self, input_tensors, output_tensors):
        inputs_list = input_tensors if isinstance(input_tensors, list) else [input_tensors]
        outputs_list = output_tensors if isinstance(output_tensors, list) else [output_tensors]

        if self.__class__.__name__ in tl.layers.inputs.__all__:
            // for InputLayer, there should be no in_nodes

After Change


            in_tensor_idxes = [0]
        else:
            in_nodes = [tensor._info[0] for tensor in inputs_list]
            in_tensor_idxes = [tensor._info[1] for tensor in inputs_list]
        node_index = len(self._nodes)

        new_node = LayerNode(self, node_index, in_nodes, inputs_list, outputs_list, in_tensor_idxes)
        self._nodes.append(new_node)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: aca1113c020ae5a220d2a075396ecb8a4a873ca6
Time: 2019-03-18
Author: rundi_wu@pku.edu.cn
File Name: tensorlayer/layers/core.py
Class Name: Layer
Method Name: _add_node


Project Name: keras-team/keras
Commit Name: 029461c7d1fe7a6927a6f9d0fa13dbf49543b413
Time: 2019-03-14
Author: abhai.dilip@gmail.com
File Name: keras/backend/cntk_backend.py
Class Name:
Method Name: batch_get_value


Project Name: NifTK/NiftyNet
Commit Name: 1f5bd7028636e6320079fc785c4aca9eda51defa
Time: 2019-01-31
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/utilities/util_common.py
Class Name:
Method Name: average_multi_opt_gradients