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

Before Change


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()

After Change


    else:
        net.hybridize()
else:
    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
def calibration(net, val_data, opt, ctx, logger):
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: DT42/BerryNet
Commit Name: 23d15da98ec99cf2b848f192c0763b55e1dbfc04
Time: 2020-02-15
Author: bofu@dt42.io
File Name: berrynet/client/camera.py
Class Name:
Method Name: main


Project Name: NervanaSystems/nlp-architect
Commit Name: f2889ca90ddd60b19070b7e8fbcb0867ae4c47ed
Time: 2019-05-01
Author: peter.izsak@intel.com
File Name: setup.py
Class Name:
Method Name: