Calling TorchQParamExporter export method with PyTorch original model(not quantized), PyTorch Quantized model, sample input of network, json(qparam.json) save path and tflite2cirlce module's path
The above method will generate quantization parameters by qparam.json and numpy files.
The generated files will be used by q-implant
Notes
It uses tflite2circle and pics to make name mapping between PyTorch and Circle.
What
Let's develop
PyTorch Quantization Parameter exporter
, a tool to export quantization parameters generated by PyTorch, to be used byq-implant
.Why
q-implant
module which can import quantization parameters into circle, in development.PyTorch Quantization Parameter exporter
, which can export quantization parameters forq-implant
Expected benefits
Tasks
PyTorch Quantization Parameter exporter
.Usage
Calling TorchQParamExporter export method with PyTorch original model(not quantized), PyTorch Quantized model, sample input of network, json(
qparam.json
) save path andtflite2cirlce
module's pathThe above method will generate quantization parameters by qparam.json and numpy files. The generated files will be used by
q-implant
Notes
It uses
tflite2circle
andpics
to make name mapping between PyTorch and Circle.