elif layer_description["output"] == "-":
output_size = sum([ x.output_size for x in inputs ])
else:
output_size = int(layer_description["output"])
self.layers[layer_name] = create_layer(layer_type,
layer_name,
inputs,
output_size,
After Change
self.layers = OrderedDict()
self.layers["X"] = self.network_input
for layer_description in architecture.layers:
layer_options = dict()
for variable, value in layer_description.items():
if variable == "inputs":
layer_options["input_layers"] = \
[ self.layers[x] for x in value ]