Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Missing bias for conv2d_transpose_op.cc

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

According to Paddle 1.3 documentation, conv2d_transpose should include bias. However Bias is not in conv2d_transpose_op.cc. Is it designed this way? But there is "Bias" in conv_op.

We wonder if we should delete the bias part in conv2d_transpose_mkldnn_op.cc as it influences the UT line coverage.

Thanks a lot !

lidanqing-vv avatar Mar 01 '19 16:03 lidanqing-vv

@chengduoZH @qingqing01 How do you think about delete the bias part in conv2d_transpose_mkldnn_op.cc?

luotao1 avatar Mar 02 '19 03:03 luotao1

@lidanqing-intel @jczaja
Discussed with @qingqing01, though bias is not in conv_transpose_op.cc, it is in API http://paddlepaddle.org/documentation/docs/en/1.3/api/layers.html#conv2d-transpose , which is implemented by elementwise_add op.

But whether to remain or delete bias of conv2d_transpose_op.cc depends on your unifined implementation, since bias is not in conv_op.cc, but used in conv_mkldnn_op.cc as well.

luotao1 avatar Mar 04 '19 03:03 luotao1

A PR has been sent #16030. AddAttr("Bias") is added in conv_transorform_op.cc and UT for fuse_bias is done in the test_conv2d_transpose_mkldnn_op.py

lidanqing-vv avatar Mar 04 '19 10:03 lidanqing-vv

I just want to test my comment date, it seems I have time zone difference

lidanqing-vv avatar Mar 16 '19 15:03 lidanqing-vv