5101a0fe2a89683ea3df8cb896610aaa3da04fb1,pytorch2keras/converter.py,,pytorch_to_keras,#,141

Before Change


                s = i
            k += 1
            if k == len(seq_to_find):
                print("found seq", k, s)
                reshape_op = nodes[s + k - 1]
                flatten_op = {
                    "kind": (lambda: "onnx::Flatten"),
                    "attributeNames": (lambda: {}),

After Change


        node_id = get_node_id(node)
        node_name_regex = re.findall(r"\[([\w\d.\-\[\]\s]+)\]", node_scope_name)

        try: 
            int(node_name_regex[-1])
            node_weigth_group_name = ".".join(
                node_name_regex[:-1]
            )
            node_weights_name = node_weigth_group_name + "." + str(group_indices[node_weigth_group_name])
            group_indices[node_weigth_group_name] += 1

        except ValueError:
            node_weights_name = ".".join(
                node_name_regex
            )
        except IndexError:
            node_weights_name = ".".join(node_input_names)

        node_attrs = {k: node[k] for k in node.attributeNames()}

        node_outputs = list(node.outputs())
        node_outputs_names = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: nerox8664/pytorch2keras
Commit Name: 5101a0fe2a89683ea3df8cb896610aaa3da04fb1
Time: 2019-01-01
Author: nerox8664@gmail.com
File Name: pytorch2keras/converter.py
Class Name:
Method Name: pytorch_to_keras


Project Name: jonas-koehler/s2cnn
Commit Name: d750d66fb998a44316000908f213ae73c53de97f
Time: 2018-03-03
Author: geiger.mario@gmail.com
File Name: examples/shrec17/dataset.py
Class Name: CacheNPY
Method Name: __call__


Project Name: DexterInd/GoPiGo3
Commit Name: 14c55ee202a50c1991bc3253469c48d88d2cdb85
Time: 2019-03-20
Author: cleoqc1124@gmail.com
File Name: Software/Scratch/GoPiGo3Scratch.py
Class Name:
Method Name:


Project Name: DexterInd/GoPiGo3
Commit Name: a92be50ea7a1738558e2aee29b1aa394ba8dce82
Time: 2019-03-25
Author: cleoqc1124@gmail.com
File Name: Software/Scratch/GoPiGo3Scratch.py
Class Name:
Method Name: