faa195738f8418bf041b42ed3a89d91d459ed05d,hypergan/optimizers/elastic_weight_consolidation_optimizer.py,ElasticWeightConsolidationOptimizer,apply_gradients,#ElasticWeightConsolidationOptimizer#Any#Any#Any#,36

Before Change


            g_vars += [var]
            g_grads += [grad]
        else:
            raise("Couldn"t find var in g_vars or d_vars")
    all_grads = d_grads + g_grads
    var_list = d_vars + g_vars

    with ops.init_scope():

After Change


            g_vars += [var]
            g_grads += [grad]
        else:
            raise ValidationException("Couldn"t find var in g_vars or d_vars " + var.name)
    all_grads = d_grads + g_grads
    var_list = d_vars + g_vars

    with ops.init_scope():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: faa195738f8418bf041b42ed3a89d91d459ed05d
Time: 2019-07-30
Author: mikkel@255bits.com
File Name: hypergan/optimizers/elastic_weight_consolidation_optimizer.py
Class Name: ElasticWeightConsolidationOptimizer
Method Name: apply_gradients


Project Name: HyperGAN/HyperGAN
Commit Name: d00575c002b4273ba688d190926ebb229db38c22
Time: 2020-07-26
Author: martyn@255bits.com
File Name: hypergan/layers/operation.py
Class Name: Operation
Method Name: build_layers


Project Name: HyperGAN/HyperGAN
Commit Name: 37c1b62dfd4b2ef13c36c7afab1f92b866b8a010
Time: 2019-07-30
Author: mikkel@255bits.com
File Name: hypergan/cli.py
Class Name: CLI
Method Name: run


Project Name: thenetcircle/dino
Commit Name: cc8c2755c2cde7cdf5ec797e81c9e07661ec3978
Time: 2017-06-26
Author: oscar.eriks@gmail.com
File Name: dino/validation/acl.py
Class Name: AclPatternValidator
Method Name: validate_new_acl