1cf4c73059ba4435f37a93a316edbd426263cbf0,pytorch2keras/converter.py,,pytorch_to_keras,#,141

Before Change


                    node_input_names.append(model_inputs[node_inputs[0]])
                else:
                    input_name = "input{0}".format(input_index)
                    if input_name not in layers:
                        continue
                    node_input_names.append(input_name)
                    input_index += 1
                    model_inputs[node_inputs[0]] = input_name

After Change


            if node_input.node().scopeName():
                node_input_names.append(get_node_id(node_input.node()))
            if "input{0}".format(get_node_id(node_input.node())) in model_inputs:
                node_input_names.append("input{0}".format(get_node_id(node_input.node())))
        // print(node_input_names)

        // if len(node_input_names) == 0:
        //     if len(node_inputs) > 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: nerox8664/pytorch2keras
Commit Name: 1cf4c73059ba4435f37a93a316edbd426263cbf0
Time: 2018-12-20
Author: nerox8664@gmail.com
File Name: pytorch2keras/converter.py
Class Name:
Method Name: pytorch_to_keras


Project Name: oddt/oddt
Commit Name: 86698c801848975de9a21fb17093e045b6271ea3
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol


Project Name: mindsdb/mindsdb
Commit Name: 067904232ff708597c53891184f3281a1683a2b1
Time: 2021-02-05
Author: stpmax@yandex.ru
File Name: mindsdb/api/mongo/responders/find.py
Class Name: Responce
Method Name: result


Project Name: undertheseanlp/underthesea
Commit Name: e8852f5ea7b3b5d222f0d6140f9375bd3826d2e4
Time: 2017-05-08
Author: brother.rain.1024@gmail.com
File Name: underthesea/word_sent/model.py
Class Name: CRFModel
Method Name: predict


Project Name: nilmtk/nilmtk
Commit Name: 82844481da6e1f3d391541d47af0c1466679f0f0
Time: 2014-07-11
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: __init__