fields[0]))
for field in fields[1:]:
variable, value = field.split("=")
if variable == "type":
layer_description["type"] = value
elif variable == "name":
layer_description["name"] = value
elif variable == "input":
if "inputs" in layer_description:
layer_description["inputs"].append(value)
else:
layer_description["inputs"] = [value]
elif variable == "output":
layer_description["output"] = value
if not "type" in layer_description:
raise InputError(""type" is not given in a layer description.")
if not "name" in layer_description:
After Change
elif variable in ("size"):
layer_description[variable] = int(value)
elif variable in ("network_input", "network_output"):
layer_description[variable] = bool(strtobool(value))
elif variable == "input":
if "inputs" in layer_description:
layer_description["inputs"].append(value)
else: