b7988369f77e12525604e2613b279c13f041f484,scripts/pose/simple_pose/validate.py,,,#,138

Before Change


    res = val_metric.get()
    return

if __name__ == "__main__":
    validate(val_data, val_dataset, net, context)

After Change


    heatmap_size = [int(i/4) for i in input_size]
    net_dsnt = DSNT(size=heatmap_size[::-1])
    net_dsnt.initialize(ctx=context)
    net_dsnt.hybridize()

def validate(val_data, val_dataset, net, ctx):
    if isinstance(ctx, mx.Context):
        ctx = [ctx]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dmlc/gluon-cv
Commit Name: b7988369f77e12525604e2613b279c13f041f484
Time: 2019-12-04
Author: wuxun.zhang@intel.com
File Name: scripts/pose/simple_pose/validate.py
Class Name:
Method Name:


Project Name: dmlc/gluon-nlp
Commit Name: a08eaf2fa930d13967fd78a8ec53069394917ad3
Time: 2018-09-18
Author: chgwang@amazon.com
File Name: scripts/language_model/word_language_model.py
Class Name:
Method Name:


Project Name: dmlc/gluon-cv
Commit Name: b7988369f77e12525604e2613b279c13f041f484
Time: 2019-12-04
Author: wuxun.zhang@intel.com
File Name: scripts/pose/simple_pose/validate.py
Class Name:
Method Name: