print("Graph outputs:", graph_outputs)
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:
print("State dict:", list(state_dict))
import re
import keras
from keras import backend as K
K.set_image_data_format("channels_first")
layers = dict()
keras_inputs = []
for i in range(len(args)):
layers["input{0}".format(i)] = keras.layers.InputLayer(
input_shape=input_shapes[i], name="input{0}".format(i)
).output
keras_inputs.append(layers["input{0}".format(i)])
outputs = []
input_index = 0
model_inputs = ["input" + i for i in graph_inputs]
for node in nodes:
node_inputs = list(node.inputs())
// print(node_inputs, model_inputs)