1cf4c73059ba4435f37a93a316edbd426263cbf0,pytorch2keras/converter.py,,pytorch_to_keras,#,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:
continue
node_input_names.append(input_name)
input_index += 1
model_inputs[node_inputs[0]] = input_name
node_type = node.kind()
// print(dir(node))
node_scope_name = node.scopeName()
After Change
graph_inputs = [n.uniqueName() for n in trace.graph().inputs()]
print("Graph inputs:", graph_inputs)
// Collect model state dict
state_dict = _unique_state_dict(model)
if verbose:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: recipy/recipy
Commit Name: 7b41deb87d3f6b3a8adf7ec94e6fd7b21e409299
Time: 2016-10-21
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/testcases/test_case_runner.py
Class Name: TestCaseRunner
Method Name: run_test_case
Project Name: PavlosMelissinos/enet-keras
Commit Name: 1828ca8d130d2f2efe2221b1daedc7795ea6097c
Time: 2017-09-05
Author: pmelissi@iti.gr
File Name: src/models/enet_unpooling/model.py
Class Name:
Method Name: transfer_weights