Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Clean up for UT coverage

Open lidanqing-vv opened this issue 7 years ago • 1 comments

MKL-DNN related ops UT states.

After the PR19011 is merged, the states will be image

image

In which,

  1. the group conv transpose in conv_tranpose_mkldnn_op.cc should be removed because it is not used in any models

  2. in_place should be removed in sum_mkldnn_op.cc because this op is not registered and never used too. (Above 2 clean-ups I need to confirm with @wojtuss He is on vocation now.)

  3. mul_mkldnn_op.cc is hard to cover more because of virtual functions. Improvements should be done first in mul_mkldnn_op.cc and then UT will follow.

  4. In elementwise_mul_mkldnn_op.cc, the condition if (is_x_format_correct && is_y_format_correct && are_dims_divisable && is_avx512_enabled) will meet when MKLDNN choose the format by itself, which means one more op like conv should appear before elementwise_mul_mkldnn_op.cc then this condition will be met. I am working on this now.

lidanqing-vv avatar Aug 09 '19 12:08 lidanqing-vv

PR19191 is last PR for this issue. The conclusion is that for elementwise_mul_mkldnn, coverage is dependent on machines.

lidanqing-vv avatar Aug 19 '19 15:08 lidanqing-vv