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

Before Change


    net.load_parameters(opt.params_file, ctx=context)
net.hybridize()

if opt.dsnt:
    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]

After Change


    model_name = "deploy"
    net = mx.gluon.SymbolBlock.imports("{}-symbol.json".format(opt.model_prefix),
              ["data"], "{}-0000.params".format(opt.model_prefix))
    net.hybridize(static_alloc=True, static_shape=True)

print("Inference on model {} started!".format(model_name))

// calibration on FP32 model
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: