[PROFILE] Add ENV var controls whether write output tensor of each op to files; Rename output tensor name when mem_reuse pass enabled by default etc. !4348
Created by: ysh329
状态:等待review
主要内容
- 增加环境变量
PADDLELITE_PRECISION_WRITE_TO_FILE
,如果用户在执行时export PADDLELITE_PRECISION_WRITE_TO_FILE=1
,则会开启写入每层op的output tensor结果到手机目录文件中(会有显示的打印和提示,写到的位置以及文件名); - 先前在开启精度profiler时,对mem_reuse这个pass会跳过,即防止覆盖写入。现在开启精度profiler后,不会跳过该mem_reuse的pass,而是针对同名output tensor在其后面追加后缀
_reuse<reuse_num>
的方式。这样可以确保和线上情况一样,保证一样的代码环境; - 上面针对
PADDLELITE_PRECISION_WRITE_TO_FILE
的环境变量的设置方法,及关于output tensor序列属性的ave_grow_rate
的描述也通过增加SummaryTail
的方式追加到精度Profiler的结尾。方便用户和开发者理解和使用。
例子
下面是设置环境变量的情况:
[I 9/16 16: 2:40.193 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':image/target_trans_reuse0 !!!, replace with '_',image_target_trans_reuse0image_target_trans_reuse0
[I 9/16 16: 2:40.322 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor image/target_trans_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/image_target_trans_reuse0.txt
[I 9/16 16: 2:40.386 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':image/target_trans/layout_trans_reuse0 !!!, replace with '_',image_target_trans_layout_trans_reuse0image_target_trans_layout_trans_reuse0
[I 9/16 16: 2:40.517 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor image/target_trans/layout_trans_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/image_target_trans_layout_trans_reuse0.txt
[I 9/16 16: 2:40.795 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor batch_norm_45.tmp_2_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/batch_norm_45.tmp_2_reuse0.txt
[I 9/16 16: 2:41. 46 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse0.txt
[I 9/16 16: 2:41.275 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse0.txt
[I 9/16 16: 2:41.519 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse0.txt
[I 9/16 16: 2:41.679 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse1 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse1.txt
[I 9/16 16: 2:42.106 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse1 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse1.txt
[I 9/16 16: 2:42.260 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse2 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse2.txt
[I 9/16 16: 2:42.316 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse1 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse1.txt
[I 9/16 16: 2:42.463 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse2 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse2.txt
[I 9/16 16: 2:42.605 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse3 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse3.txt
[I 9/16 16: 2:42.658 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse3 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse3.txt
[I 9/16 16: 2:42.721 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse4 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse4.txt
[I 9/16 16: 2:42.858 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse4 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse4.txt
[I 9/16 16: 2:42.924 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse5 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse5.txt
[I 9/16 16: 2:42.945 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse2 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse2.txt
[I 9/16 16: 2:42.994 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse6 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse6.txt
[I 9/16 16: 2:43. 49 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse5 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse5.txt
[I 9/16 16: 2:43. 71 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse7 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse7.txt
[I 9/16 16: 2:43. 96 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse6 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse6.txt
[I 9/16 16: 2:43.153 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse8 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse8.txt
[I 9/16 16: 2:43.211 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse3 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse3.txt
[I 9/16 16: 2:43.235 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse9 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse9.txt
[I 9/16 16: 2:43.261 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor batch_norm_45.tmp_2_reuse1 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/batch_norm_45.tmp_2_reuse1.txt
[I 9/16 16: 2:43.383 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse10 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse10.txt
[I 9/16 16: 2:43.414 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse7 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse7.txt
[I 9/16 16: 2:43.429 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor batch_norm_45.tmp_2_reuse2 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/batch_norm_45.tmp_2_reuse2.txt
[I 9/16 16: 2:43.458 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse11 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse11.txt
[I 9/16 16: 2:43.486 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse8 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse8.txt
[I 9/16 16: 2:43.503 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse12 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse12.txt
[I 9/16 16: 2:43.520 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor elementwise_add_4.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/elementwise_add_4.tmp_0_reuse0.txt
[I 9/16 16: 2:43.550 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse9 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse9.txt
[I 9/16 16: 2:43.721 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_7.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_7.tmp_0_reuse0.txt
[I 9/16 16: 2:43.750 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse13 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse13.txt
[I 9/16 16: 2:43.768 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse10 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse10.txt
[I 9/16 16: 2:43.786 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse4 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse4.txt
[I 9/16 16: 2:43.816 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse14 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse14.txt
[I 9/16 16: 2:43.846 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse11 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse11.txt
[I 9/16 16: 2:43.863 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse15 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse15.txt
[I 9/16 16: 2:43.881 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse12 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse12.txt
[I 9/16 16: 2:43.954 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse16 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse16.txt
[I 9/16 16: 2:44. 22 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse13 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse13.txt
[I 9/16 16: 2:44. 48 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse5 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse5.txt
[I 9/16 16: 2:44.147 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse17 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse17.txt
[I 9/16 16: 2:44.233 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse14 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse14.txt
[I 9/16 16: 2:44.260 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse18 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse18.txt
[I 9/16 16: 2:44.283 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse15 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse15.txt
[I 9/16 16: 2:44.337 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse19 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse19.txt
[I 9/16 16: 2:44.354 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse16 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse16.txt
[I 9/16 16: 2:44.362 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse20 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse20.txt
[I 9/16 16: 2:44.386 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse6 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse6.txt
[I 9/16 16: 2:44.406 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse17 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse17.txt
[I 9/16 16: 2:44.415 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse7 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse7.txt
[I 9/16 16: 2:44.423 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse18 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse18.txt
[I 9/16 16: 2:44.451 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse21 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse21.txt
[I 9/16 16: 2:44.475 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse8 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse8.txt
[I 9/16 16: 2:44.486 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor batch_norm_45.tmp_2_reuse3 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/batch_norm_45.tmp_2_reuse3.txt
[I 9/16 16: 2:44.494 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse22 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse22.txt
[I 9/16 16: 2:44.521 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_31.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_31.tmp_0_reuse0.txt
[I 9/16 16: 2:44.525 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':reference_enc/target_trans_reuse0 !!!, replace with '_',reference_enc_target_trans_reuse0reference_enc_target_trans_reuse0
[I 9/16 16: 2:44.547 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor reference_enc/target_trans_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/reference_enc_target_trans_reuse0.txt
[I 9/16 16: 2:44.552 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':reference_enc/target_trans/layout_trans_reuse0 !!!, replace with '_',reference_enc_target_trans_layout_trans_reuse0reference_enc_target_trans_layout_trans_reuse0
[I 9/16 16: 2:44.568 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor reference_enc/target_trans/layout_trans_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/reference_enc_target_trans_layout_trans_reuse0.txt
[I 9/16 16: 2:44.678 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor concat_0.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/concat_0.tmp_0_reuse0.txt
[I 9/16 16: 2:44.698 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_1.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_1.tmp_0_reuse0.txt
[I 9/16 16: 2:44.831 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse23 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse23.txt
[I 9/16 16: 2:44.852 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_3.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_3.tmp_0_reuse0.txt
[I 9/16 16: 2:44.889 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse24 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse24.txt
[I 9/16 16: 2:44.910 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_5.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_5.tmp_0_reuse0.txt
[I 9/16 16: 2:44.974 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse19 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse19.txt
[I 9/16 16: 2:44.985 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse25 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse25.txt
[I 9/16 16: 2:45. 29 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor bilinear_interp_0.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/bilinear_interp_0.tmp_0_reuse0.txt
[I 9/16 16: 2:45. 90 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor concat_1.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/concat_1.tmp_0_reuse0.txt
[I 9/16 16: 2:45.112 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse26 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse26.txt
[I 9/16 16: 2:45.146 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse20 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse20.txt
[I 9/16 16: 2:45.279 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor bilinear_interp_1.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/bilinear_interp_1.tmp_0_reuse0.txt
[I 9/16 16: 2:45.425 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor concat_2.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/concat_2.tmp_0_reuse0.txt
[I 9/16 16: 2:45.592 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse27 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse27.txt
[I 9/16 16: 2:45.726 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu_30.tmp_0_reuse9 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu_30.tmp_0_reuse9.txt
[I 9/16 16: 2:45.863 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse21 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse21.txt
[I 9/16 16: 2:45.999 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse28 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse28.txt
[I 9/16 16: 2:46. 8 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_10.tmp_0_reuse22 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_10.tmp_0_reuse22.txt
[I 9/16 16: 2:46. 99 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor relu6_11.tmp_0_reuse29 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/relu6_11.tmp_0_reuse29.txt
[I 9/16 16: 2:46.239 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':save_infer_model/scale_0.tmp_0_reuse0 !!!, replace with '_',save_infer_model_scale_0.tmp_0_reuse0save_infer_model_scale_0.tmp_0_reuse0
[I 9/16 16: 2:46.359 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor save_infer_model/scale_0.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/save_infer_model_scale_0.tmp_0_reuse0.txt
[I 9/16 16: 2:46.382 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':save_infer_model/scale_0.tmp_0/layout_trans_reuse0 !!!, replace with '_',save_infer_model_scale_0.tmp_0_layout_trans_reuse0save_infer_model_scale_0.tmp_0_layout_trans_reuse0
[I 9/16 16: 2:46.460 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor save_infer_model/scale_0.tmp_0/layout_trans_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/save_infer_model_scale_0.tmp_0_layout_trans_reuse0.txt
[I 9/16 16: 2:46.463 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':save_infer_model/scale_0.tmp_0/target_trans_reuse0 !!!, replace with '_',save_infer_model_scale_0.tmp_0_target_trans_reuse0save_infer_model_scale_0.tmp_0_target_trans_reuse0
[I 9/16 16: 2:46.531 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor save_infer_model/scale_0.tmp_0/target_trans_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/save_infer_model_scale_0.tmp_0_target_trans_reuse0.txt
[I 9/16 16: 2:46.555 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':save_infer_model/scale_1.tmp_0_reuse0 !!!, replace with '_',save_infer_model_scale_1.tmp_0_reuse0save_infer_model_scale_1.tmp_0_reuse0
[I 9/16 16: 2:46.566 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor save_infer_model/scale_1.tmp_0_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/save_infer_model_scale_1.tmp_0_reuse0.txt
[I 9/16 16: 2:46.570 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':save_infer_model/scale_1.tmp_0/layout_trans_reuse0 !!!, replace with '_',save_infer_model_scale_1.tmp_0_layout_trans_reuse0save_infer_model_scale_1.tmp_0_layout_trans_reuse0
[I 9/16 16: 2:46.582 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor save_infer_model/scale_1.tmp_0/layout_trans_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/save_infer_model_scale_1.tmp_0_layout_trans_reuse0.txt
[I 9/16 16: 2:46.583 ...3/lite/core/profile/precision_profiler.h:83 write_tensorfile] --> tensor name is abnormal with '\':save_infer_model/scale_1.tmp_0/target_trans_reuse0 !!!, replace with '_',save_infer_model_scale_1.tmp_0_target_trans_reuse0save_infer_model_scale_1.tmp_0_target_trans_reuse0
[I 9/16 16: 2:46.597 ...3/lite/core/profile/precision_profiler.h:100 write_tensorfile] write tensor save_infer_model/scale_1.tmp_0/target_trans_reuse0 to file:/storage/emulated/0/PaddleLite_2020916_16240_188/save_infer_model_scale_1.tmp_0_target_trans_reuse0.txt
[I 9/16 16: 2:46.597 ...g-infoflow-20200903/lite/core/program.cc:287 Run]
========================================= Detailed Precision Profiler Summary =========================================
operator:(kernel_info) output_tensor_name:(tensor_info) dims mean std_deviation ave_grow_rate*
io_copy:opencl/any/any image/target_trans_reuse0:opencl/float/NCHW {1,4,192,192} 1.000000 0.000000 0.000000
layout:opencl/any/ImageDefault image/target_trans/layout_trans_reuse0:opencl/any/ImageDefault {1,4,192,192} 1.000000 0.000000 0.000000
conv2d:opencl/float16/ImageDefault batch_norm_45.tmp_2_reuse0:opencl/float16/ImageDefault {1,16,96,96} 3.004641 2.615369 789.818573
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse0:opencl/float16/ImageDefault {1,16,96,96} 1.065538 0.838845 551.597852
depthwise_conv2d:opencl/float16/ImageDefault relu_30.tmp_0_reuse0:opencl/float16/ImageDefault {1,16,96,96} 1.576749 2.393581 1822.235573
conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse0:opencl/float16/ImageDefault {1,16,96,96} 0.013819 1.939641 -0.043277
elementwise_add:opencl/float16/ImageDefault relu6_11.tmp_0_reuse1:opencl/float16/ImageDefault {1,16,96,96} 3.018571 3.307609 -0.145005
conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse1:opencl/float16/ImageDefault {1,64,96,96} 1.104751 1.223607 1351.195588
depthwise_conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse2:opencl/float16/ImageDefault {1,64,48,48} 1.276755 2.102460 2524.598777
conv2d:opencl/float16/ImageDefault relu_30.tmp_0_reuse1:opencl/float16/ImageDefault {1,24,48,48} 0.012133 2.034637 -0.053940
conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse2:opencl/float16/ImageDefault {1,72,48,48} 1.486014 0.970042 1072.596759
depthwise_conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse3:opencl/float16/ImageDefault {1,72,48,48} 0.918128 1.850941 4963.165099
conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse3:opencl/float16/ImageDefault {1,24,48,48} -0.329411 2.427516 0.042931
elementwise_add:opencl/float16/ImageDefault relu6_11.tmp_0_reuse4:opencl/float16/ImageDefault {1,24,48,48} -0.317356 3.123633 -0.064016
conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse4:opencl/float16/ImageDefault {1,72,48,48} 0.829709 0.972318 2187.237559
depthwise_conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse5:opencl/float16/ImageDefault {1,72,24,24} 1.754225 2.547629 3442.659125
conv2d:opencl/float16/ImageDefault relu_30.tmp_0_reuse2:opencl/float16/ImageDefault {1,40,24,24} -0.181885 1.813678 -3.640155
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse6:opencl/float16/ImageDefault {1,120,24,24} 0.777347 0.884730 1438.901141
depthwise_conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse5:opencl/float16/ImageDefault {1,120,24,24} 1.016666 1.639593 3047.756306
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse7:opencl/float16/ImageDefault {1,40,24,24} 0.272276 1.844760 -2.386341
elementwise_add:opencl/float16/ImageDefault relu6_10.tmp_0_reuse6:opencl/float16/ImageDefault {1,40,24,24} 0.090385 2.465543 -0.071531
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse8:opencl/float16/ImageDefault {1,120,24,24} 0.607273 0.865878 1414.704168
depthwise_conv2d:opencl/float16/ImageDefault relu_30.tmp_0_reuse3:opencl/float16/ImageDefault {1,120,24,24} 1.391009 2.475761 1904.534856
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse9:opencl/float16/ImageDefault {1,40,24,24} -0.054972 1.921743 -0.114348
elementwise_add:opencl/float16/ImageDefault batch_norm_45.tmp_2_reuse1:opencl/float16/ImageDefault {1,40,24,24} 0.035416 3.154457 -0.011142
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse10:opencl/float16/ImageDefault {1,240,24,24} 0.286508 0.503902 621.570620
depthwise_conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse7:opencl/float16/ImageDefault {1,240,12,12} 0.752346 1.427586 1803.276138
conv2d:opencl/float16/ImageDefault batch_norm_45.tmp_2_reuse2:opencl/float16/ImageDefault {1,80,12,12} 0.101741 1.575708 -0.182562
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse11:opencl/float16/ImageDefault {1,200,12,12} 0.500484 0.615288 465.185206
depthwise_conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse8:opencl/float16/ImageDefault {1,200,12,12} 0.218688 0.627532 1607.405094
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse12:opencl/float16/ImageDefault {1,80,12,12} 0.059182 0.937142 -0.214186
elementwise_add:opencl/float16/ImageDefault elementwise_add_4.tmp_0_reuse0:opencl/float16/ImageDefault {1,80,12,12} 0.160916 1.740524 -1.248945
conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse9:opencl/float16/ImageDefault {1,184,12,12} 0.359762 0.539356 673.254443
conv2d:opencl/float16/ImageDefault relu6_7.tmp_0_reuse0:opencl/float16/ImageDefault {1,48,24,24} 1.195662 0.984672 741.331254
depthwise_conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse13:opencl/float16/ImageDefault {1,184,12,12} 0.199654 0.653577 1663.588201
conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse10:opencl/float16/ImageDefault {1,80,12,12} 0.035768 1.107640 -0.198699
elementwise_add:opencl/float16/ImageDefault relu_30.tmp_0_reuse4:opencl/float16/ImageDefault {1,80,12,12} 0.196681 1.741838 -1.135677
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse14:opencl/float16/ImageDefault {1,184,12,12} 0.214689 0.359053 701.302362
depthwise_conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse11:opencl/float16/ImageDefault {1,184,12,12} 0.115745 0.306376 805.850531
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse15:opencl/float16/ImageDefault {1,80,12,12} 0.113677 0.485560 0.461852
elementwise_add:opencl/float16/ImageDefault relu6_10.tmp_0_reuse12:opencl/float16/ImageDefault {1,80,12,12} 0.310363 1.858365 -4.108087
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse16:opencl/float16/ImageDefault {1,480,12,12} 0.275081 0.464836 684.658362
depthwise_conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse13:opencl/float16/ImageDefault {1,480,12,12} 0.327947 0.723467 1400.872967
conv2d:opencl/float16/ImageDefault relu_30.tmp_0_reuse5:opencl/float16/ImageDefault {1,112,12,12} -0.062747 0.949623 0.060816
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse17:opencl/float16/ImageDefault {1,672,12,12} 0.190119 0.308454 895.754750
depthwise_conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse14:opencl/float16/ImageDefault {1,672,12,12} 0.077617 0.198364 771.946207
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse18:opencl/float16/ImageDefault {1,112,12,12} 0.044888 0.531714 -0.025981
elementwise_add:opencl/float16/ImageDefault relu6_10.tmp_0_reuse15:opencl/float16/ImageDefault {1,112,12,12} -0.017859 1.048076 1.807613
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse19:opencl/float16/ImageDefault {1,336,12,12} 0.255160 0.420856 657.452605
depthwise_conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse16:opencl/float16/ImageDefault {1,336,6,6} 0.670127 1.252944 3221.104733
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse20:opencl/float16/ImageDefault {1,80,6,6} -0.071309 1.204069 -0.089432
conv2d:opencl/float16/ImageDefault relu_30.tmp_0_reuse6:opencl/float16/ImageDefault {1,480,6,6} 0.246813 0.417841 912.902746
depthwise_conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse17:opencl/float16/ImageDefault {1,480,6,6} 0.243549 0.558993 1571.694222
conv2d:opencl/float16/ImageDefault relu_30.tmp_0_reuse7:opencl/float16/ImageDefault {1,80,6,6} 0.063860 1.253202 -8.101562
elementwise_add:opencl/float16/ImageDefault relu6_10.tmp_0_reuse18:opencl/float16/ImageDefault {1,80,6,6} -0.007442 1.649299 -0.084113
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse21:opencl/float16/ImageDefault {1,480,6,6} 0.109398 0.287004 689.747803
depthwise_conv2d:opencl/float16/ImageDefault relu_30.tmp_0_reuse8:opencl/float16/ImageDefault {1,480,6,6} 0.210137 0.551957 1512.702867
conv2d:opencl/float16/ImageDefault batch_norm_45.tmp_2_reuse3:opencl/float16/ImageDefault {1,80,6,6} -0.040046 1.087827 -1.400989
elementwise_add:opencl/float16/ImageDefault relu6_11.tmp_0_reuse22:opencl/float16/ImageDefault {1,80,6,6} -0.047486 2.160196 -0.720369
conv2d:opencl/float16/ImageDefault relu_31.tmp_0_reuse0:opencl/float16/ImageDefault {1,480,6,6} 0.104614 0.225165 680.062134
io_copy:opencl/any/any reference_enc/target_trans_reuse0:opencl/float/NCHW {1,480,6,6} 1.000000 0.000000 0.000000
layout:opencl/any/ImageDefault reference_enc/target_trans/layout_trans_reuse0:opencl/any/ImageDefault {1,480,6,6} 1.000000 0.000000 0.000000
concat:opencl/float16/ImageDefault concat_0.tmp_0_reuse0:opencl/float16/ImageDefault {1,960,6,6} 0.552307 0.475162 342.924586
conv2d:opencl/float16/ImageDefault relu6_1.tmp_0_reuse0:opencl/float16/ImageDefault {1,256,6,6} 0.272272 0.609930 702.947660
depthwise_conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse23:opencl/float16/ImageDefault {1,960,6,6} 0.732249 1.434294 4009.998291
conv2d:opencl/float16/ImageDefault relu6_3.tmp_0_reuse0:opencl/float16/ImageDefault {1,256,6,6} 0.358376 0.737722 2317.635292
depthwise_conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse24:opencl/float16/ImageDefault {1,960,6,6} 0.352595 0.897587 4569.623086
conv2d:opencl/float16/ImageDefault relu6_5.tmp_0_reuse0:opencl/float16/ImageDefault {1,256,6,6} 0.213558 0.434102 3654.828456
pool2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse19:opencl/float16/ImageDefault {1,960,1,1} 0.552305 0.468383 2202.543395
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse25:opencl/float16/ImageDefault {1,256,1,1} 0.473703 1.127915 36740.731947
bilinear_interp:opencl/float16/ImageDefault bilinear_interp_0.tmp_0_reuse0:opencl/float16/ImageDefault {1,256,6,6} 0.473703 1.127915 1020.575887
concat:opencl/float16/ImageDefault concat_1.tmp_0_reuse0:opencl/float16/ImageDefault {1,1024,6,6} 0.329477 0.777051 1926.457833
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse26:opencl/float16/ImageDefault {1,256,6,6} 0.249501 0.469152 2537.767107
dropout:opencl/float16/ImageDefault dropout_0.tmp_1_reuse0:arm/float/NCHW {} unused unused unused
dropout:opencl/float16/ImageDefault relu6_10.tmp_0_reuse20:opencl/float16/ImageDefault {1,256,6,6} 0.024944 0.046905 254.158576
bilinear_interp:opencl/float16/ImageDefault bilinear_interp_1.tmp_0_reuse0:opencl/float16/ImageDefault {1,256,24,24} 0.022694 0.042062 15.105400
concat:opencl/float16/ImageDefault concat_2.tmp_0_reuse0:opencl/float16/ImageDefault {1,304,24,24} 0.207899 0.580965 129.772903
depthwise_conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse27:opencl/float16/ImageDefault {1,304,24,24} 1.145155 1.203707 124.814524
conv2d:opencl/float16/ImageDefault relu_30.tmp_0_reuse9:opencl/float16/ImageDefault {1,256,24,24} 0.432828 0.623424 705.101875
depthwise_conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse21:opencl/float16/ImageDefault {1,256,24,24} 0.653517 0.966896 961.167899
conv2d:opencl/float16/ImageDefault relu6_11.tmp_0_reuse28:opencl/float16/ImageDefault {1,256,24,24} 0.027140 0.124314 442.375893
conv2d:opencl/float16/ImageDefault relu6_10.tmp_0_reuse22:opencl/float16/ImageDefault {1,2,24,24} 0.729399 1.222329 -0.373337
bilinear_interp:opencl/float16/ImageDefault relu6_11.tmp_0_reuse29:opencl/float16/ImageDefault {1,2,192,192} 0.706763 1.101021 -0.000869
conv2d:opencl/float16/ImageDefault save_infer_model/scale_0.tmp_0_reuse0:opencl/float16/ImageDefault {1,2,192,192} 0.192856 1.825643 -0.001622
layout:opencl/any/NCHW save_infer_model/scale_0.tmp_0/layout_trans_reuse0:opencl/any/NCHW {1,2,192,192} 0.192856 1.825643 -0.001622
io_copy:opencl/any/any save_infer_model/scale_0.tmp_0/target_trans_reuse0:host/float/NCHW {1,2,192,192} 0.192856 1.825643 -0.001622
scale:opencl/float16/ImageDefault save_infer_model/scale_1.tmp_0_reuse0:opencl/float16/ImageDefault {1,480,6,6} 0.104614 0.225165 680.062134
layout:opencl/any/NCHW save_infer_model/scale_1.tmp_0/layout_trans_reuse0:opencl/any/NCHW {1,480,6,6} 0.104614 0.225165 680.062134
io_copy:opencl/any/any save_infer_model/scale_1.tmp_0/target_trans_reuse0:host/float/NCHW {1,480,6,6} 0.104614 0.225165 680.062134
[note]
1. `ave_grow_rate`: show the sequence value of tensor when std_dev & mean are same.
2. Enable write each output tensor to file: `export PADDLELITE_PRECISION_WRITE_TO_FILE=1` on ADB command line.