facebookarchive / models

A repository for storing pre-trained Caffe2 models.
Apache License 2.0
430 stars 127 forks source link

any quantize tool like tflite? #60

Open MaxwellHan opened 5 years ago

MaxwellHan commented 5 years ago

in tflite,when excute import tensorflow as tf converter = tf.lite.TocoConverter.from_saved_model(saved_model_dir) converter.post_training_quantize = True tflite_quantized_model = converter.convert() open("quantized_model.tflite", "wb").write(tflite_quantized_model) i can get a 8bit model and then i can move is to mobile devices.

is there any docs about caffe2 like this?i can't find any example or tutorial about quant a model and excute on mobile devices. what's more, how caffe2 and pytorch support 8bit ops ?

SystemErrorWang commented 5 years ago

same question here, would like to know if there's any quantization tools in caffe2 now that it supports 8bit operators.

RicCu commented 5 years ago

They're supposedly coming within the next couple of months. See this issue