API手册
March
class horizon_plugin_pytorch.march.March
BPU platform.
-
BAYES: Bayes platform
-
BERNOULLI2: Bernoulli2 platform
-
BAYES_E: Bayes platform
qconfig
horizon_plugin_pytorch.quantization.get_default_qconfig(activation_fake_quant: Optional[str] = 'fake_quant', weight_fake_quant: Optional[str] = 'fake_quant', activation_observer: Optional[str] = 'min_max', weight_observer: Optional[str] = 'min_max', activation_qkwargs: Optional[Dict] = None, weight_qkwargs: Optional[Dict] = None)
Get default qconfig.
参数
-
activation_fake_quant – FakeQuantize type of activation, default is fake_quant. Avaliable items are fake_quant, lsq, pact.
-
weight_fake_quant – FakeQuantize type of weight, default is fake_quant. Avaliable items are fake_quant, lsq and pact.
-
activation_observer – Observer type of activation, default is min_max. Avaliable items are min_max, fixed_scale, clip, percentile, clip_std, mse, kl.
-
weight_observer – Observer type of weight, default is min_max. Avaliable items are min_max, fixed_scale, clip, percentile, clip_std, mse.
-
activation_qkwargs – A dict contain activation Observer type, args of activation FakeQuantize and args of activation Observer.
-
weight_qkwargs – A dict contain weight Observer type, args of weight FakeQuantize and args of weight Observer.