Created by: panyx0718
need to first run test_recognize_digits.py and generate a full program to /paddle/build/python/paddle/fluid/tests/book/recognize_digits_conv.train.model
PYTHONPATH=/paddle/build/python python /paddle/Paddle/tools/optimizations/prune_and_fuse.py
original_vars:: batch_norm_1.w_0@GRAD original_vars:: mean_1.tmp_0 ... original_vars:: batch_norm_1.w_2 original_vars:: conv2d_2.tmp_0 original_vars:: conv2d_3.tmp_0@GRAD original_vars:: beta2_pow_acc_8 original_vars:: conv2d_3.b_0 E0930 07:14:51.508872 98722 parallel_executor.cc:160] graph num 1
train acc: 0.15625 train acc: 0.234375 train acc: 0.2734375 train acc: 0.3671875 train acc: 0.375 train acc: 0.4765625 train acc: 0.6328125 train acc: 0.65625 train acc: 0.7109375 train acc: 0.6015625 after_quant_vars:: batch_norm_1.w_0@GRAD after_quant_vars:: mean_1.tmp_0 ... after_quant_vars:: conv2d_2.w_0.scale after_quant_vars:: conv2d_2.w_0.quantized.dequantized after_quant_vars:: img.quantized after_quant_vars:: img.scale after_quant_vars:: img.quantized.dequantized after_quant_vars:: conv2d_3.w_0.quantized after_quant_vars:: conv2d_3.w_0.scale after_quant_vars:: conv2d_3.w_0.quantized.dequantized after_quant_vars:: batch_norm_1.tmp_2.quantized after_quant_vars:: batch_norm_1.tmp_2.scale after_quant_vars:: batch_norm_1.tmp_2.quantized.dequantized after_quant_vars:: pool2d_3.tmp_0.quantized after_quant_vars:: pool2d_3.tmp_0.scale after_quant_vars:: pool2d_3.tmp_0.quantized.dequantized after_quant_vars:: fc_1.w_0.quantized after_quant_vars:: fc_1.w_0.scale after_quant_vars:: fc_1.w_0.quantized.dequantized E0930 07:14:54.333812 98722 parallel_executor.cc:160] graph num 1 quant_train acc: 0.765625 quant_train acc: 0.796875 quant_train acc: 0.765625 quant_train acc: 0.796875 quant_train acc: 0.7890625 quant_train acc: 0.8046875 quant_train acc: 0.7578125 quant_train acc: 0.890625 quant_train acc: 0.859375 quant_train acc: 0.890625 total passes: 2 after append total passes: 3 E0930 07:14:56.421910 98722 parallel_executor.cc:160] graph num 1 with_viz_pass_quant_train acc: 0.859375 with_viz_pass_quant_train acc: 0.9140625 with_viz_pass_quant_train acc: 0.8828125 with_viz_pass_quant_train acc: 0.890625 with_viz_pass_quant_train acc: 0.890625 with_viz_pass_quant_train acc: 0.90625 with_viz_pass_quant_train acc: 0.890625 with_viz_pass_quant_train acc: 0.9375 with_viz_pass_quant_train acc: 0.8984375 with_viz_pass_quant_train acc: 0.9375 generating graph to /tmp/graph_viz.png..... infer acc: 0.90625 infer acc: 0.9453125 infer acc: 0.890625 infer acc: 0.90625 infer acc: 0.8984375 infer acc: 0.9140625 infer acc: 0.9296875 infer acc: 0.921875 infer acc: 0.9375 infer acc: 0.9375