7edd4d310a9090707fd878d1ee49777ecbe0765e,hypergan/layers/operation.py,Operation,build_layers,#Operation#Any#Any#Any#,26

Before Change


            elif type(arg) == pyparsing.ParseResults and type(arg[0]) == hg.parser.Pattern:
                parsed = arg[0]
                parsed.parsed_options = hc.Config(parsed.options)
                layers.append(component.build_layer(parsed.layer_name, parsed.args, parsed.parsed_options))
                layer_names.append(parsed.layer_name)
            else:
                raise ValidationException("Could not parse operation layer "" + arg + """)

After Change


            elif arg in component.named_layers:
                layers.append(None)
                layer_names.append("layer "+arg)
                layer_shapes.append(component.layer_output_sizes[arg])
            elif arg in component.gan.named_layers:
                layers.append(component.gan.named_layers[arg])
                layer_names.append(None)
                layer_shapes.append(component.layer_output_sizes[arg])
            elif arg in component.context_shapes:
                layers.append(None)
                layer_names.append(arg)
                layer_shapes.append(component.context_shapes[arg])
            elif type(arg) == pyparsing.ParseResults and type(arg[0]) == hg.parser.Pattern:
                parsed = arg[0]
                parsed.parsed_options = hc.Config(parsed.options)
                layer = component.build_layer(parsed.layer_name, parsed.args, parsed.parsed_options)
                layers.append(layer)
                layer_names.append(parsed.layer_name)
                layer_shapes.append(component.current_size)
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 7edd4d310a9090707fd878d1ee49777ecbe0765e
Time: 2020-08-03
Author: martyn@255bits.com
File Name: hypergan/layers/operation.py
Class Name: Operation
Method Name: build_layers


Project Name: HyperGAN/HyperGAN
Commit Name: 7edd4d310a9090707fd878d1ee49777ecbe0765e
Time: 2020-08-03
Author: martyn@255bits.com
File Name: hypergan/layers/operation.py
Class Name: Operation
Method Name: build_layers


Project Name: HyperGAN/HyperGAN
Commit Name: 58579976a05bc835084e163f4a47f12cc382e8b2
Time: 2018-08-27
Author: mikkel@255bits.com
File Name: hypergan/discriminators/configurable_discriminator.py
Class Name: ConfigurableDiscriminator
Method Name: parse_layer


Project Name: HyperGAN/HyperGAN
Commit Name: 0062d2d141280618b6f3dea0ac0110f26a7060c3
Time: 2020-06-27
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: parse_layer