1cf4c73059ba4435f37a93a316edbd426263cbf0,pytorch2keras/converter.py,,pytorch_to_keras,#,141
Before Change
node_input_names.append(get_node_id(node_input.node()))
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
print(get_node_id(node_input.node()))
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)
In pattern: SUPERPATTERN
Frequency: 3
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: nilmtk/nilmtk
Commit Name: cd302eee53de29de903c5467d7686f75b0b65a6c
Time: 2015-09-21
Author: jack-list@xlk.org.uk
File Name: nilmtk/disaggregate/fhmm_exact.py
Class Name: FHMM
Method Name: disaggregate
Project Name: brian-team/brian2
Commit Name: 6c67a2e0031876c73f3251f3e4a4cfea67313085
Time: 2017-07-18
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLCodeGenerator
Method Name: find_used_variables