26b2098c8b1da3898324a0ac5acb3a14e3d6076c,theanolm/network/architecture.py,Architecture,from_description,#Any#Any#,85

Before Change


                    else:
                        layer_description[variable] = value
                if not "type" in layer_description:
                    raise InputError(""type" is not given in a layer description.")
                if not "name" in layer_description:
                    raise InputError(""name" is not given in a layer description.")
                if not layer_description["inputs"]:
                    raise InputError(""input" is not given in a layer description.")

After Change


                layer_description = {"inputs": []}
                for field in fields[1:]:
                    parts = field.split("=", 1)
                    if len(parts) != 2:
                        raise InputError(
                            ""field=value" expected but "{}" found in a layer "
                            "description in "{}"."
                            .format(field, description_file.name))
                    variable, value = parts
                    if variable == "size":
                        layer_description[variable] = int(value)
                    elif variable == "input":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: senarvi/theanolm
Commit Name: 26b2098c8b1da3898324a0ac5acb3a14e3d6076c
Time: 2016-08-08
Author: seppo.git@marjaniemi.com
File Name: theanolm/network/architecture.py
Class Name: Architecture
Method Name: from_description


Project Name: MolSSI/QCEngine
Commit Name: df34480652b4a065228ed333f48b09aae4c43179
Time: 2019-05-20
Author: malorian@me.com
File Name: qcengine/programs/psi4.py
Class Name: Psi4Executor
Method Name: compute


Project Name: senarvi/theanolm
Commit Name: 22a25a30d9a7fca19e6ca59c5b6ee82241e126df
Time: 2016-01-18
Author: seppo.git@marjaniemi.com
File Name: theanolm/network.py
Class Name: Architecture
Method Name: from_description