int8 static quantization in the numerical debugger
Summary: Fix the static int8 transformation in the numerical debugger
Test Plan:
Example:
buck run mode/opt caffe2/caffe2/fb/fbgemm/numerical_debugger:multithreaded_sparsenn_emulator -- --warmup 0 --iter 1 --threads 1 --runs 1 --local_model_path=/data/models/mobile_cvr_int8/101245796_428 --filler="logfiledb" --benchmark_model_transformation="int8_static" --run_dir=/data/models/mobile_cvr_int8/local_output/ --local_dataset_path=/data/models/mobile_cvr_int8/dataset/test/dataset_cached_reader.db --output_tensors="Sigmoid/sigmoid" --attach_ne_reporter=true --output_prediction_blob="Sigmoid/sigmoid" --activation-histogram-file=/data/models/mobile_cvr_int8/activation_histograms/101245796_428_train_10000_hist.txt.0x7f1f36133ea0 --dump_nets --caffe2_logging_print_net_summary=1
Reviewed By: amylittleyang
Differential Revision: D16368515
fbshipit-source-id: b2649cec0fa35b852842a419fea1ea7105e5225c