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

Before Change


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

After Change


    print("Graph outputs:", graph_outputs)


    graph_inputs = [n.uniqueName() for n in trace.graph().inputs()]
    print("Graph inputs:", graph_inputs)

    // Collect model state dict
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

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: dmlc/dgl
Commit Name: 444becf00a10f74d6d6c7187798706355ca05612
Time: 2020-07-30
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/data/qm7b.py
Class Name: QM7b
Method Name: _load


Project Name: nerox8664/pytorch2keras
Commit Name: 9db8f0d00d0d12b717e4a9cf876ed720205ca0b8
Time: 2018-01-31
Author: nerox8664@gmail.com
File Name: pytorch2keras/converter.py
Class Name:
Method Name: pytorch_to_keras