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


        return outputs

    def _add_node(self, input_tensors, output_tensors):
        inputs_list = tolist(input_tensors) // input_tensors if isinstance(input_tensors, list) else [input_tensors]
        outputs_list = tolist(output_tensors) // 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
            in_nodes = []
            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: 4

Non-data size: 5

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: QUANTAXIS/QUANTAXIS
Commit Name: e3dbac6f2f796104fd642868e8226f849718e98a
Time: 2020-02-24
Author: 864413714@qq.com
File Name: QUANTAXIS/QAData/data_marketvalue.py
Class Name:
Method Name: QA_data_marketvalue


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: LayerNode
Method Name: __call__


Project Name: allenai/allennlp
Commit Name: c6bc7fde370e54312d9fabdeec66818240b6e783
Time: 2017-09-20
Author: markn@allenai.org
File Name: allennlp/models/semantic_role_labeler.py
Class Name: SemanticRoleLabeler
Method Name: decode